mirror of
https://github.com/nushell/nushell
synced 2025-01-10 04:09:09 +00:00
28 lines
392 B
Rust
28 lines
392 B
Rust
|
#[derive(Debug, Clone, Copy)]
|
||
|
pub enum Unit {
|
||
|
// Filesize units: metric
|
||
|
Byte,
|
||
|
Kilobyte,
|
||
|
Megabyte,
|
||
|
Gigabyte,
|
||
|
Terabyte,
|
||
|
Petabyte,
|
||
|
|
||
|
// Filesize units: ISO/IEC 80000
|
||
|
Kibibyte,
|
||
|
Mebibyte,
|
||
|
Gibibyte,
|
||
|
Tebibyte,
|
||
|
Pebibyte,
|
||
|
|
||
|
// Duration units
|
||
|
Nanosecond,
|
||
|
Microsecond,
|
||
|
Millisecond,
|
||
|
Second,
|
||
|
Minute,
|
||
|
Hour,
|
||
|
Day,
|
||
|
Week,
|
||
|
}
|