XVec

Trait XVec 

Source
pub trait XVec<T> {
    // Required methods
    fn x_get(&self, idx: isize) -> Option<&T>;
    fn x_refs(&self) -> Vec<&T>;
}

Required Methods§

Source

fn x_get(&self, idx: isize) -> Option<&T>

Returns the Option<&T> for the idx as vec.get(idx) However, support negative indexes that will go from the end. where -1 will be the eventual last element.

Source

fn x_refs(&self) -> Vec<&T>

Implementations on Foreign Types§

Source§

impl<T> XVec<T> for Vec<T>

Source§

fn x_get(&self, idx: isize) -> Option<&T>

Source§

fn x_refs(&self) -> Vec<&T>

Implementors§