Trait number_prefix::Amounts [−][src]
Traits for floating-point values for both the possible multipliers. They need to be Copy, have defined 1000 and 1024s, and implement a bunch of operators.
Associated Constants
const NUM_1000: Self
[src]
The constant representing 1000, for decimal prefixes.
const NUM_1024: Self
[src]
The constant representing 1024, for binary prefixes.
Required methods
fn is_negative(self) -> bool
[src]
Whether this number is negative. This is used internally.