Skip to main content

Writable

Trait Writable 

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

Mutable keypath: setter path (same semantics as a get_mut closure on many keypath APIs).

Required Methods§

Source

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

Setter path. Returns None when navigation fails.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§