1
2
3
4
5
6
7
8
9
10
/// Choose how to find an appropriate unit based on a base of 2 or 10.
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum UnitType {
    /// KiB, MiB, ..., etc.
    Binary,
    /// KB, MB, ..., etc.
    Decimal,
    /// Use both binary and decimal, choose the closest one.
    Both,
}