Module amplify::confinement
source · Expand description
Confinement puts a constrain on the number of elements within a collection.
Macros
Helper macro to construct confined
BTreeMap
of a given typeHelper macro to construct confined
BTreeSet
of a given typeHelper macro to construct confined
HashMap
of a given typeHelper macro to construct confined
HashSet
of a given typeHelper macro to construct confined vector of a given type
Helper macro to construct confined
BTreeMap
of a SmallOrdMap
typeHelper macro to construct confined
BTreeSet
of a SmallOrdSet
typeHelper macro to construct confined
HashMap
of a SmallHashMap
typeHelper macro to construct confined string of a
SmallString
typeHelper macro to construct confined
HashSet
of a SmallHashSet
typeHelper macro to construct confined
BTreeMap
of a TinyOrdMap
typeHelper macro to construct confined
BTreeSet
of a TinyOrdSet
typeHelper macro to construct confined
HashMap
of a TinyHashMap
typeHelper macro to construct confined string of a
TinyString
typeHelper macro to construct confined
HashSet
of a TinyHashSet
typeStructs
The confinement for the collection.
Enums
Errors generated by constructing confined
AsciiString
from str
.Errors when confinement constraints were not met.
Traits
Trait implemented by a collection types which need to support collection
confinement.
Trait implemented by key-value maps which need to support collection
confinement.
Type Definitions
AsciiString
with maximum 2^32-1 characters.VecDeque
with maximum 2^32-1 items of type T
.HashMap
with maximum 2^32-1 items.HashSet
with maximum 2^32-1 items of type T
.BTreeMap
with maximum 2^32-1 items.BTreeSet
with maximum 2^32-1 items of type T
.String
with maximum 2^32-1 characters.AsciiString
with maximum 2^24-1 characters.VecDeque
with maximum 2^24-1 items of type T
.HashMap
with maximum 2^24-1 items.HashSet
with maximum 2^24-1 items of type T
.BTreeMap
with maximum 2^24-1 items.BTreeSet
with maximum 2^24-1 items of type T
.String
with maximum 2^24-1 characters.AsciiString
which contains at least a single character.VecDeque
which contains at least a single item.HashMap
which contains at least a single item.HashSet
which contains at least a single item.BTreeMap
which contains at least a single item.BTreeSet
which contains at least a single item.String
which contains at least a single character.Vec
which contains at least a single item.AsciiString
with maximum 2^16-1 characters.VecDeque
with maximum 2^16-1 items of type T
.HashMap
with maximum 2^16-1 items.HashSet
with maximum 2^16-1 items of type T
.BTreeMap
with maximum 2^16-1 items.BTreeSet
with maximum 2^16-1 items of type T
.String
with maximum 2^16-1 characters.AsciiString
with maximum 255 characters.HashMap
with maximum 255 items.HashSet
with maximum 255 items of type T
.BTreeMap
with maximum 255 items.BTreeSet
with maximum 255 items of type T
.String
with maximum 255 characters.