1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use super::{BaseUnit, FormatSizeOptions, Kilo};
pub const BINARY: FormatSizeOptions = FormatSizeOptions {
base_unit: BaseUnit::Byte,
kilo: Kilo::Binary,
units: Kilo::Binary,
decimal_places: 2,
decimal_zeroes: 0,
fixed_at: None,
long_units: false,
space_after_value: true,
suffix: "",
};
pub const DECIMAL: FormatSizeOptions = FormatSizeOptions {
base_unit: BaseUnit::Byte,
kilo: Kilo::Decimal,
units: Kilo::Decimal,
decimal_places: 2,
decimal_zeroes: 0,
fixed_at: None,
long_units: false,
space_after_value: true,
suffix: "",
};
pub const WINDOWS: FormatSizeOptions = FormatSizeOptions {
base_unit: BaseUnit::Byte,
kilo: Kilo::Binary,
units: Kilo::Decimal,
decimal_places: 2,
decimal_zeroes: 0,
fixed_at: None,
long_units: false,
space_after_value: true,
suffix: "",
};