humat 0.3.1

Formatting numbers for us, while the machines are still at bay.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Ranged unit

use core::num::NonZeroU128;

#[derive(Debug)]
/// Ranged unit.
pub struct RangedUnit {
    /// The maximum value of the range (excluded).
    ///
    /// This will be the minimum value of the next range.
    pub range_max: NonZeroU128,

    /// The abbr unit when the value is less than `range_max`.
    pub unit: Option<&'static str>,
}