Expand description
Utilities for interacting with the native key-value storage.
Modules
Structs
A key with an arbitrary number of segments.
Writes them in order of the iteration.
A key with a pre-defined number of segments.
Writes them in order of the iteration.
Storage type that stores a single item under the given
Namespace
.
Use this when there is only “one of” something.A key which consists of a static byte slice.
Traits
Implemented for types that act as CW storage keys by writing
bytes into the given buffer. What those bytes represent and
where they are coming from as well as how they are written
into the buffer entirely depends on the implementing type.
Represents a namespace, usually acting as a prefix
to a dynamically generated key. We only do this so
that we can have strongly typed keys and storage types.
Use the
namespace
macro to generate one.Functions
Load something from the storage.
Remove something from the storage.
Save something to the storage.