IncrementRef

Trait IncrementRef 

Source
pub trait IncrementRef {
    type Output;

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

IncrementRef is similar to Increment, but it allows for incrementing a value by reference.

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

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