humansize/
scales.rs

1pub(crate) static SCALE_DECIMAL: [&str; 9] = ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
2
3pub(crate) static SCALE_DECIMAL_LONG: [&str; 9] = [
4    "Bytes",
5    "Kilobytes",
6    "Megabytes",
7    "Gigabytes",
8    "Terabytes",
9    "Petabytes",
10    "Exabytes",
11    "Zettabytes",
12    "Yottabytes",
13];
14
15pub(crate) static SCALE_BINARY: [&str; 9] =
16    ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
17
18pub(crate) static SCALE_BINARY_LONG: [&str; 9] = [
19    "Bytes",
20    "Kibibytes",
21    "Mebibytes",
22    "Gibibytes",
23    "Tebibytes",
24    "Pebibytes",
25    "Exbibytes",
26    "Zebibytes",
27    "Yobibytes",
28];
29
30pub(crate) static SCALE_DECIMAL_BIT: [&str; 9] = [
31    "bits", "kbit", "Mbit", "Gbit", "Tbit", "Pbit", "Ebit", "Zbit", "Ybit",
32];
33
34pub(crate) static SCALE_DECIMAL_BIT_LONG: [&str; 9] = [
35    "Bits",
36    "Kilobits",
37    "Megabits",
38    "Gigabits",
39    "Terabits",
40    "Petabits",
41    "Exabits",
42    "Zettabits",
43    "Yottabits",
44];
45
46pub(crate) static SCALE_BINARY_BIT: [&str; 9] = [
47    "bits", "Kibit", "Mibit", "Gibit", "Tibit", "Pibit", "Eibit", "Zibit", "Yibit",
48];
49
50pub(crate) static SCALE_BINARY_BIT_LONG: [&str; 9] = [
51    "bits", "Kibibits", "Mebibits", "Gibibits", "Tebibits", "Pebibits", "Exbibits", "Zebibits",
52    "Yobibits",
53];