pub enum SubstateKeyRef<'a> {
Field(&'a u8),
Map(&'a Vec<u8>),
Sorted(&'a ([u8; 2], Vec<u8>)),
}
Variants§
Trait Implementations§
Source§impl<'a> Clone for SubstateKeyRef<'a>
impl<'a> Clone for SubstateKeyRef<'a>
Source§fn clone(&self) -> SubstateKeyRef<'a>
fn clone(&self) -> SubstateKeyRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for SubstateKeyRef<'a>
impl<'a> Debug for SubstateKeyRef<'a>
Source§impl<'a> Hash for SubstateKeyRef<'a>
impl<'a> Hash for SubstateKeyRef<'a>
Source§impl<'a> Ord for SubstateKeyRef<'a>
impl<'a> Ord for SubstateKeyRef<'a>
Source§fn cmp(&self, other: &SubstateKeyRef<'a>) -> Ordering
fn cmp(&self, other: &SubstateKeyRef<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for SubstateKeyRef<'a>
impl<'a> PartialEq for SubstateKeyRef<'a>
Source§impl<'a> PartialOrd for SubstateKeyRef<'a>
impl<'a> PartialOrd for SubstateKeyRef<'a>
impl<'a> Copy for SubstateKeyRef<'a>
impl<'a> Eq for SubstateKeyRef<'a>
impl<'a> StructuralPartialEq for SubstateKeyRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubstateKeyRef<'a>
impl<'a> RefUnwindSafe for SubstateKeyRef<'a>
impl<'a> Send for SubstateKeyRef<'a>
impl<'a> Sync for SubstateKeyRef<'a>
impl<'a> Unpin for SubstateKeyRef<'a>
impl<'a> UnwindSafe for SubstateKeyRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.