Struct moxie::Commit[][src]

pub struct Commit<State> { /* fields omitted */ }

A read-only pointer to the value of a state variable at a particular revision.

Reads through a commit are not guaranteed to be the latest value visible to the runtime. Commits should be shared and used within the context of a single crate::runtime::Revision, being re-loaded from the state variable each time.

See state and cache_state for examples.

Trait Implementations

impl<State> Clone for Commit<State>[src]

impl<State> Debug for Commit<State> where
    State: Debug

impl<State> Deref for Commit<State>[src]

type Target = State

The resulting type after dereferencing.

impl<State> Display for Commit<State> where
    State: Display

impl<State: Eq> Eq for Commit<State>[src]

impl<State: Hash> Hash for Commit<State>[src]

impl<State: PartialEq> PartialEq<Commit<State>> for Commit<State>[src]

impl<State> StructuralEq for Commit<State>[src]

impl<State> StructuralPartialEq for Commit<State>[src]

Auto Trait Implementations

impl<State> RefUnwindSafe for Commit<State> where
    State: RefUnwindSafe

impl<State> Send for Commit<State> where
    State: Send + Sync

impl<State> Sync for Commit<State> where
    State: Send + Sync

impl<State> Unpin for Commit<State>

impl<State> UnwindSafe for Commit<State> where
    State: RefUnwindSafe

Blanket Implementations

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

impl<T> AsContext for T where
    T: Debug + 'static, 

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> CallHasher for T where
    T: Hash + ?Sized

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> Erased for T

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.