byte_unit/unit/
unit_type.rs

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