Trait Reader

Source
pub trait Reader {
    // Required methods
    fn index(&self, index: usize) -> Option<&AppData>;
    fn find<T: Display>(&self, key: T, val: FQLType) -> Option<&AppData>;
    fn find_index<T: Display>(&self, key: T, val: FQLType) -> Option<usize>;
    fn find_index_from_data(&self, data: &AppData) -> Option<usize>;
    fn find_all<T: Display>(&self, key: T, val: FQLType) -> Vec<&AppData>;
    fn find_all_index<T: Display>(&self, key: T, val: FQLType) -> Vec<usize>;
    fn find_by<T: Display>(
        &self,
        key: T,
        f: impl Fn(&FQLType) -> bool,
    ) -> Vec<&AppData>;
    fn find_index_by<T: Display>(
        &self,
        key: T,
        f: impl Fn(&FQLType) -> bool,
    ) -> Vec<usize>;
}

Required Methods§

Source

fn index(&self, index: usize) -> Option<&AppData>

Source

fn find<T: Display>(&self, key: T, val: FQLType) -> Option<&AppData>

Source

fn find_index<T: Display>(&self, key: T, val: FQLType) -> Option<usize>

Source

fn find_index_from_data(&self, data: &AppData) -> Option<usize>

Source

fn find_all<T: Display>(&self, key: T, val: FQLType) -> Vec<&AppData>

Source

fn find_all_index<T: Display>(&self, key: T, val: FQLType) -> Vec<usize>

Source

fn find_by<T: Display>( &self, key: T, f: impl Fn(&FQLType) -> bool, ) -> Vec<&AppData>

Source

fn find_index_by<T: Display>( &self, key: T, f: impl Fn(&FQLType) -> bool, ) -> Vec<usize>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§