FrontMut

Trait FrontMut 

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

Collection exposing a mutable reference to its front element.

Required Methods§

Source

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

Get a mutable reference to the front 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> FrontMut for VecDeque<T>

Source§

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

Implementors§

Source§

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