GetBack

Trait GetBack 

Source
pub trait GetBack {
    type Item;

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

Safely retrieve items from a collection with negative indexing.

Required Associated Types§

Required Methods§

Source

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

Safely retrieve items 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: Copy> GetBack for Vec<T>

Source§

type Item = T

Source§

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

Implementors§

Source§

impl<const BASE: usize> GetBack for Loose<BASE>

Source§

impl<const BASE: usize> GetBack for LooseBytes<BASE>

Source§

impl<const BASE: usize> GetBack for LooseShorts<BASE>

Source§

impl<const BASE: usize> GetBack for LooseWords<BASE>

Source§

impl<const BASE: usize> GetBack for Tight<BASE>

Source§

impl<const BASE: usize, B: BigInt<BASE>> GetBack for Denormal<BASE, B>