Skip to main content

KpReadable

Trait KpReadable 

Source
pub trait KpReadable<R, V, Root, Value> {
    // Required method
    fn get(&self, root: Root) -> Option<Value>;
}
Expand description

Read-only keypath surface: navigate from Root to Value (logical value type V).

Required Methods§

Source

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

Implementors§

Source§

impl<R, V, Root, Value, MutRoot, MutValue, G, S> KpReadable<R, V, Root, Value> for Kp<R, V, Root, Value, MutRoot, MutValue, G, S>
where Root: Borrow<R>, Value: Borrow<V>, MutRoot: BorrowMut<R>, MutValue: BorrowMut<V>, G: Fn(Root) -> Option<Value>, S: Fn(MutRoot) -> Option<MutValue>,