Skip to main content

KPWritable

Trait KPWritable 

Source
pub trait KPWritable<R, V, MutRoot, MutValue> {
    // Required method
    fn set(&self, root: MutRoot) -> Option<MutValue>;
}
Expand description

Mutable keypath surface: setter path (same closure as Kp::get_mut).

Required Methods§

Source

fn set(&self, root: MutRoot) -> Option<MutValue>

Implementors§

Source§

impl<R, V, Root, Value, MutRoot, MutValue, G, S> KPWritable<R, V, MutRoot, MutValue> 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>,