pub trait IsNegative: Zero + Ord {
// Required method
fn is_negative(&self) -> bool;
}Expand description
A simplified version of num_traits::Signed.
Unlike Signed::is_negative or f64::is_sign_negative, this returns false for -0.0 to keep
consistency among integers, decimals and floats.
Required Methods§
fn is_negative(&self) -> bool
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.