Stated

Trait Stated 

Source
pub trait Stated {
    type Item;

    // Required methods
    fn get(self) -> Self::Item;
    fn get_ref(&self) -> &Self::Item;
    fn get_mut(&mut self) -> &mut Self::Item;
    fn set(&mut self, inner: Self::Item);
}
Expand description

The Stated trait defines the interface for stateful implementations in the library.

Required Associated Types§

Required Methods§

Source

fn get(self) -> Self::Item

Source

fn get_ref(&self) -> &Self::Item

Source

fn get_mut(&mut self) -> &mut Self::Item

Source

fn set(&mut self, inner: Self::Item)

Implementors§

Source§

impl<Q> Stated for State<Q>

Source§

type Item = Q

Source§

impl<Q> Stated for Halt<Q>

Source§

type Item = Q