Trait Increment

Source
pub trait Increment {
    type Output;

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

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<S, T> Increment for S
where S: One, for<'a> &'a S: Add<S, Output = T>,