pub trait Abs {
type Output;
// Required method
fn abs(self) -> Self::Output;
}
Expand description
This trait provides the interface for the function used to compute the absolute value of a number.
pub trait Abs {
type Output;
// Required method
fn abs(self) -> Self::Output;
}
This trait provides the interface for the function used to compute the absolute value of a number.