[][src]Trait frank::Fetching

pub trait Fetching<T: Clone> {
    fn fetch(&self, index: &Vec<usize>) -> Vec<T>;
fn fetch_guard(&self, index: &Vec<usize>) -> Vec<T>; }

frank::Fetching can be implemented for generic vectors that support Clone with 'use frank::Fetching;' It allows vector.fetch(&your_picks_vec_usize) and vector.fetch_guard(&your_picks_vec_usize). fetch is fast and fetch_guard is index guarded, won't terminate but does eprint!'s index errors and still returns computable results.

Required methods

fn fetch(&self, index: &Vec<usize>) -> Vec<T>

fn fetch_guard(&self, index: &Vec<usize>) -> Vec<T>

Loading content...

Implementations on Foreign Types

impl<T> Fetching<T> for Vec<T> where
    T: Clone
[src]

Loading content...

Implementors

Loading content...