pub trait XVec<T> {
// Required methods
fn x_get(&self, idx: isize) -> Option<&T>;
fn x_refs(&self) -> Vec<&T>;
}Required Methods§
Sourcefn x_get(&self, idx: isize) -> Option<&T>
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.