[−][src]Trait numerics::SignedAndUnsigned
Signed number operations implemented for both signed and unsigned numbers.
Associated Constants
const MINIMUM: Self
Minimum value for the type.
Required methods
fn abs(&self) -> Option<Self>
The absolute value of a number. If the number is signed and equal to ::MIN, this operation would normally panic at overflow in debug or return ::MIN in release. This is undesired behavior, so we return None instead.
fn is_negative(&self) -> bool
Reports whether the number is negative.