pub trait Signed:
Num
+ Neg<Output = Self>
+ PartialOrd {
// Required methods
fn abs(self) -> Self;
fn signum(self) -> Self;
fn is_negative(self) -> bool;
}Expand description
Signed numbers: negation, absolute value, sign.
Required Methods§
Sourcefn is_negative(self) -> bool
fn is_negative(self) -> bool
Returns true if the number is negative.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".