Trait Square

Source
pub trait Square {
    type Output;

    // Required method
    fn sqr(self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn sqr(self) -> Self::Output

Implementors§

Source§

impl<T> Square for T
where T: Copy + Mul<Self, Output = Self>,