pub trait Double {
type Output;
// Required method
fn double(&self) -> Self::Output;
}Expand description
Unary operator for retrieving the doubled value.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".