pub trait Abs {
type Output;
// Required method
fn abs(self) -> Self::Output;
// Provided method
fn _apply(self) -> Self::Output
where Self: Sized { ... }
}Expand description
trait to represent the operation
pub trait Abs {
type Output;
// Required method
fn abs(self) -> Self::Output;
// Provided method
fn _apply(self) -> Self::Output
where Self: Sized { ... }
}trait to represent the operation