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
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".