Enum ink_storage::collections::stash::Entry [−][src]
pub enum Entry<T> {
Vacant(VacantEntry),
Occupied(T),
}
Expand description
An entry within the stash.
The vacant entries within a storage stash form a doubly linked list of vacant entries that is used to quickly re-use their vacant storage.
Variants
Vacant(VacantEntry)
Tuple Fields
0: VacantEntry
A vacant entry that holds the index to the next and previous vacant entry.
Occupied(T)
An occupied entry that hold the value.
Implementations
Trait Implementations
Indicates whether a type requires deep clean-up of its state meaning that
a clean-up routine has to decode an entity into an instance in order to
eventually recurse upon its tear-down.
This is not required for the majority of primitive data types such as i32
,
however types such as storage::Box
that might want to forward the clean-up
procedure to their inner T
require a deep clean-up. Read more
Pulls an instance of Self
from the contract storage. Read more
Pushes an instance of Self
to the contract storage. Read more
Clears an instance of Self
from the contract storage. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Entry<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Entry<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more