Decrement

Trait Decrement 

Source
pub trait Decrement {
    type Output;

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

Decrement is a chainable trait that defines a decrement method, effectively removing a single unit from the original object to create another

Required Associated Types§

Required Methods§

Source

fn dec(self) -> Self::Output

Implementors§

Source§

impl<T> Decrement for T
where T: One + Sub<Output = T>,