pub trait Abs: Neg<Output = Self> + Ord + Zero {
// Provided method
fn abs(self) -> Self { ... }
}
Expand description
Absolute value of a number.
Automatically implemented for all types satisfying the trait’s bounds.
Provided Methods§
Object Safety§
This trait is not object safe.