Skip to main content

DecrementMut

Trait DecrementMut 

Source
pub trait DecrementMut {
    // Required method
    fn dec_mut(&mut self);
}
Expand description

The DecrementMut trait defines a decrement method that operates in place, modifying the original object.

Required Methods§

Source

fn dec_mut(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> DecrementMut for T
where T: One + SubAssign,