Struct ralf::State [] [src]

pub struct State<T> where
    T: Copy + Clone
{ /* fields omitted */ }

State is a wrapper around your state, allowing querying and modification

Methods

impl<T> State<T> where
    T: Copy + Clone
[src]

[src]

Create a new state from an initial value

[src]

return a clone of the underlying data

[src]

Edit the underlying data immmutably

Trait Implementations

impl<T: Debug> Debug for State<T> where
    T: Copy + Clone
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for State<T> where
    T: Send

impl<T> !Sync for State<T>