Skip to main content

StatePlace

Trait StatePlace 

Source
pub trait StatePlace: Clone + PartialEq {
    // Required methods
    fn steps(&self) -> &[Step];
    fn with_steps(&self, steps: Vec<Step>) -> Self;
    fn same_root(&self, other: &Self) -> bool;
}
Expand description

A place in an app’s state, as its runner names one.

Required Methods§

Source

fn steps(&self) -> &[Step]

The fields and items from its state down to it.

Source

fn with_steps(&self, steps: Vec<Step>) -> Self

The same state, with steps instead.

Source

fn same_root(&self, other: &Self) -> bool

Whether other is in the same state.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§