pub trait Amounts:
Copy
+ Sized
+ PartialOrd
+ Div<Output = Self>
+ Neg<Output = Self> {
const NUM_1000: Self;
const NUM_1024: Self;
// Required method
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§
Required Methods§
Sourcefn is_negative(self) -> bool
fn is_negative(self) -> bool
Whether this number is negative. This is used internally.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.