[−][src]Struct moxie::Commit
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]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<State> Debug for Commit<State> where
State: Debug,
[src]
State: Debug,
impl<State> Deref for Commit<State>
[src]
type Target = State
The resulting type after dereferencing.
pub fn deref(&self) -> &Self::Target
[src]
impl<State> Display for Commit<State> where
State: Display,
[src]
State: Display,
impl<State: Eq> Eq for Commit<State>
[src]
impl<State: Hash> Hash for Commit<State>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<State: PartialEq> PartialEq<Commit<State>> for Commit<State>
[src]
pub fn eq(&self, other: &Commit<State>) -> bool
[src]
pub fn ne(&self, other: &Commit<State>) -> bool
[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,
[src]
State: RefUnwindSafe,
impl<State> Send for Commit<State> where
State: Send + Sync,
[src]
State: Send + Sync,
impl<State> Sync for Commit<State> where
State: Send + Sync,
[src]
State: Send + Sync,
impl<State> Unpin for Commit<State>
[src]
impl<State> UnwindSafe for Commit<State> where
State: RefUnwindSafe,
[src]
State: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsContext for T where
T: Debug + 'static,
[src]
T: Debug + 'static,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,