Struct ink_storage::collections::BitStash
source · [−]pub struct BitStash { /* private fields */ }
Expand description
A stash for bits operating on the contract storage.
Allows to efficiently put and take bits and stores the underlying bits in an extremely compressed format.
Implementations
Returns true
if the bit at the indexed slot is set (1
).
Returns None
if the index is out of bounds.
Puts another set bit into the storage bit stash.
Returns the index to the slot where the set bit has been inserted.
Trait Implementations
Default initializes the implementing type using spread layout. 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
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