Trait big_int::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> GetBack for Vec<T>

§

type Item = T

source§

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

Implementors§