Skip to main content

State

Trait State 

Source
pub trait State:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn merge(&mut self, other: Self);
}
Expand description

Trait for graph state. Types implementing this can be used as graph state.

Required Methods§

Source

fn merge(&mut self, other: Self)

Merge another state into this one (reducer pattern).

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§