StateExt

Trait StateExt 

Source
pub trait StateExt: State {
    // Provided method
    fn at_root<'a>(doc: &'a DocCell, sink: PatchSink<'a>) -> Self::Ref<'a> { ... }
}
Expand description

Extension trait providing convenience methods for State types.

Provided Methods§

Source

fn at_root<'a>(doc: &'a DocCell, sink: PatchSink<'a>) -> Self::Ref<'a>

Create a state reference at the document root.

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§

Source§

impl<T: State> StateExt for T