pub trait SimpleMath {
    fn half(&self) -> Self;
    fn double(&self) -> Self;
}

Required Methods

Divides by 2 and rounds down

Multiplies by 2

Implementors