pub trait IncrementMut {
type Output;
// Required method
fn inc_mut(&mut self) -> Self::Output;
}Expand description
IncrementMut is similar to Increment, but it allows for incrementing a value in place.
note: the automatic implementation of IncrementMut leverages the replace
method to compute the next value, replacing and returning the previous value.