Skip to main content

Increment

Trait Increment 

Source
pub trait Increment {
    type Output;

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

Required Associated Types§

Required Methods§

Source

fn inc(self) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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