Readable

Trait Readable 

Source
pub trait Readable<Root, Value> {
    // Required methods
    fn get<'a>(&self, root: &'a Root) -> &'a Value;
    fn get_fn(&self) -> for<'a> fn(&'a Root) -> &'a Value;

    // Provided method
    fn iter<'a>(
        &self,
        slice: &'a [Root],
    ) -> Box<dyn Iterator<Item = &'a Value> + 'a>
       where Self: Sized { ... }
}

Required Methods§

Source

fn get<'a>(&self, root: &'a Root) -> &'a Value

Source

fn get_fn(&self) -> for<'a> fn(&'a Root) -> &'a Value

Provided Methods§

Source

fn iter<'a>( &self, slice: &'a [Root], ) -> Box<dyn Iterator<Item = &'a Value> + 'a>
where Self: Sized,

Implementors§

Source§

impl<Root, Value> Readable<Root, Value> for ReadableKeyPath<Root, Value>

Source§

impl<Root, Value> Readable<Root, Value> for WritableKeyPath<Root, Value>