Trait Decrement

Source
pub trait Decrement {
    type Output;

    // Required method
    fn dec(&self) -> Self::Output;
}
Expand description

Decrement generally describes an object capable of decrementing itself;

Here, it is used on a Dimension enabling it to remove and return an axis from itself.

Required Associated Types§

Required Methods§

Source

fn dec(&self) -> Self::Output

Implementors§

Source§

impl<D> Decrement for D
where D: RemoveAxis,