Struct uptown_funk::StateWrapper[][src]

pub struct StateWrapper<S, E: Executor> { /* fields omitted */ }

Implementations

impl<S, E: Executor> StateWrapper<S, E>[src]

pub fn new(state: S, executor: E) -> Self[src]

pub fn borrow_state(&self) -> Ref<'_, S>[src]

pub fn borrow_state_mut(&self) -> RefMut<'_, S>[src]

pub fn get_state(&self) -> Rc<RefCell<S>>[src]

pub fn executor(&self) -> &E[src]

pub fn memory(&self) -> Memory[src]

pub fn recover_state(self) -> Result<S, ()>[src]

Trait Implementations

impl<S, E: Executor> Clone for StateWrapper<S, E>[src]

Auto Trait Implementations

impl<S, E> !RefUnwindSafe for StateWrapper<S, E>

impl<S, E> !Send for StateWrapper<S, E>

impl<S, E> !Sync for StateWrapper<S, E>

impl<S, E> Unpin for StateWrapper<S, E>

impl<S, E> !UnwindSafe for StateWrapper<S, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.