Trait Square

Source
pub trait Square:
    Mul
    + Sized
    + Clone
    + Copy {
    // Provided method
    fn square(self) -> <Self as Mul>::Output { ... }
}

Provided Methods§

Source

fn square(self) -> <Self as Mul>::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Square for T
where T: Mul + Sized + Clone + Copy,