pub trait Square { type Output; // Required method fn square(&self) -> Self::Output; }
Unary operator for retrieving the squared value.
Returns the square of self.
square
self