Trait Increment

Source
pub trait Increment {
    type Output;

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

Increment defines an interface for incrementing a value.

Required Associated Types§

Required Methods§

Source

fn inc(self) -> Self::Output

Implementors§

Source§

impl<S> Increment for S
where S: One + Add<Output = S>,