Trait bounce::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.

Object Safety§

This trait is not object safe.

Implementors§