pub enum Collection {
Alarms,
Words,
}Expand description
Which of the standard contract’s two collections a snapshot is of (§3).
Variants§
Alarms
state/alarms/{slot}: one entry per slot that has a value, its id
the slot, on …/state/alarms, collection 0.
Words
state/words/{slot}: the same on …/state/words, collection 1.
Never exposed across a face (§2.11).
Implementations§
Source§impl Collection
impl Collection
Sourcepub const fn coll(self) -> u32
pub const fn coll(self) -> u32
The collection’s index in a snapshot (ALARMS_COLL,
WORDS_COLL).
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
impl Copy for Collection
Source§impl Debug for Collection
impl Debug for Collection
impl Eq for Collection
Source§impl Hash for Collection
impl Hash for Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Forget for Collection
impl Freeze for Collection
impl Move for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more