Trait WithNotion

Source
pub trait WithNotion<T: 'static> {
    // Required method
    fn apply(self: Rc<Self>, notion: Rc<T>) -> Rc<Self>;
}
Expand description

A trait to apply a notion on a state.

See: use_notion_applier

Required Methods§

Source

fn apply(self: Rc<Self>, notion: Rc<T>) -> Rc<Self>

Applies a notion on current state.

This always yields a new instance of Rc<Self> so it can be compared with the previous state using PartialEq.

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§