BackMut

Trait BackMut 

Source
pub trait BackMut: CollectionMut {
    // Required method
    fn back_mut(&mut self) -> Option<Self::ItemMut<'_>>;
}
Expand description

Collection exposing a mutable reference to its back element.

Required Methods§

Source

fn back_mut(&mut self) -> Option<Self::ItemMut<'_>>

Get a mutable reference to the back element of the collection.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> BackMut for VecDeque<T>

Source§

fn back_mut(&mut self) -> Option<&mut T>

Implementors§

Source§

impl<T: GetMut<usize> + Len> BackMut for T