pub trait Amounts: Copy + Sized + PartialOrd + Div<Output = Self> + Neg<Output = Self> {
    const NUM_1000: Self;
    const NUM_1024: Self;

    fn is_negative(self) -> bool;
}
Expand description

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.

Required Associated Constants

The constant representing 1000, for decimal prefixes.

The constant representing 1024, for binary prefixes.

Required Methods

Whether this number is negative. This is used internally.

Implementations on Foreign Types

Implementors