GetBackMut

Trait GetBackMut 

Source
pub trait GetBackMut {
    type Item;

    // Required method
    fn get_back_mut(&mut self, index: usize) -> Option<&mut Self::Item>;
}
Expand description

Safely retrieve a mutable reference from a collection with negative indexing.

Required Associated Types§

Required Methods§

Source

fn get_back_mut(&mut self, index: usize) -> Option<&mut Self::Item>

Safely retrieve a mutable reference from a collection with negative indexing. Returns None if the index is larger than the length of the collection.

Implementations on Foreign Types§

Source§

impl<T> GetBackMut for Vec<T>

Source§

type Item = T

Source§

fn get_back_mut(&mut self, index: usize) -> Option<&mut Self::Item>

Implementors§