pub struct BlockState<State: Clone> {
pub pre: State,
pub post: State,
}
Fields
pre: State
post: State
Trait Implementations
sourceimpl<State: Clone + Clone> Clone for BlockState<State>
impl<State: Clone + Clone> Clone for BlockState<State>
sourcefn clone(&self) -> BlockState<State>
fn clone(&self) -> BlockState<State>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<State: Debug + Clone> Debug for BlockState<State>
impl<State: Debug + Clone> Debug for BlockState<State>
sourceimpl<State: Ord + Clone> Ord for BlockState<State>
impl<State: Ord + Clone> Ord for BlockState<State>
sourceimpl<State: PartialEq + Clone> PartialEq<BlockState<State>> for BlockState<State>
impl<State: PartialEq + Clone> PartialEq<BlockState<State>> for BlockState<State>
sourcefn eq(&self, other: &BlockState<State>) -> bool
fn eq(&self, other: &BlockState<State>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BlockState<State>) -> bool
fn ne(&self, other: &BlockState<State>) -> bool
This method tests for !=
.
sourceimpl<State: PartialOrd + Clone> PartialOrd<BlockState<State>> for BlockState<State>
impl<State: PartialOrd + Clone> PartialOrd<BlockState<State>> for BlockState<State>
sourcefn partial_cmp(&self, other: &BlockState<State>) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockState<State>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<State: Eq + Clone> Eq for BlockState<State>
impl<State: Clone> StructuralEq for BlockState<State>
impl<State: Clone> StructuralPartialEq for BlockState<State>
Auto Trait Implementations
impl<State> RefUnwindSafe for BlockState<State> where
State: RefUnwindSafe,
impl<State> Send for BlockState<State> where
State: Send,
impl<State> Sync for BlockState<State> where
State: Sync,
impl<State> Unpin for BlockState<State> where
State: Unpin,
impl<State> UnwindSafe for BlockState<State> where
State: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.