pub trait Square: Sizedwhere
for<'a> &'a Self: Mul<&'a Self, Output = Self>,{
// Provided method
fn square(&self) -> Self { ... }
}Expand description
Support for optimized squaring
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".