Expand description
Confinement puts a constraint on the number of elements within a collection.
Macros§
- confined_
blob Deprecated Helper macro to construct confined blob - confined_
bmap Deprecated Helper macro to construct confinedBTreeMap
of a given type - confined_
bset Deprecated Helper macro to construct confinedBTreeSet
of a given type - confined_
map Deprecated Helper macro to construct confinedHashMap
of a given type - confined_
s Deprecated Helper macro to construct confined string - confined_
set Deprecated Helper macro to construct confinedHashSet
of a given type - confined_
vec Deprecated Helper macro to construct confined vector of a given type - Helper macro to construct confined blob of a
MediumBlob
type - Helper macro to construct confined
BTreeMap
of aMediumOrdMap
type - Helper macro to construct confined
BTreeSet
of aMediumOrdSet
type - Helper macro to construct confined
HashMap
of aMediumHashMap
type - Helper macro to construct confined string of a
MediumString
type - Helper macro to construct confined
HashSet
of aMediumHashSet
type - Helper macro to construct confined vector of a
MediumVec
type - Helper macro to construct confined blob of a
SmallBlob
type - Helper macro to construct confined
BTreeMap
of aSmallOrdMap
type - Helper macro to construct confined
BTreeSet
of aSmallOrdSet
type - Helper macro to construct confined
HashMap
of aSmallHashMap
type - Helper macro to construct confined string of a
SmallString
type - Helper macro to construct confined
HashSet
of aSmallHashSet
type - Helper macro to construct confined vector of a
SmallVec
type - Helper macro to construct confined blob of a
TinyBlob
type - Helper macro to construct confined
BTreeMap
of aTinyOrdMap
type - Helper macro to construct confined
BTreeSet
of aTinyOrdSet
type - Helper macro to construct confined
HashMap
of aTinyHashMap
type - Helper macro to construct confined string of a
TinyString
type - Helper macro to construct confined
HashSet
of aTinyHashSet
type - Helper macro to construct confined vector of a
TinyVec
type
Structs§
- The confinement for the collection.
Enums§
- Errors generated by constructing confined
AsciiString
fromstr
. - Errors when confinement constraints were not met.
Constants§
- Constant for a minimal size of a confined collection.
- Constant for a maximal size of a confined collection equal to
u8::MAX
. - Constant for a maximal size of a confined collection equal to
u16::MAX
. - Constant for a maximal size of a confined collection equal to
u24::MAX
. - Constant for a maximal size of a confined collection equal to
u32::MAX
. - Constant for a maximal size of a confined collection equal to
u64::MAX
. - Constant for a minimal size of a confined collection.
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 Aliases§
- Confined
AsciiString
. - Confined
Vec<u8>
. - Confined
VecDeque
. - Confined
HashMap
. - Confined
HashSet
. - Confined
BTreeMap
. - Confined
BTreeSet
. - Confined
String
. - Confined
Vec
. AsciiString
with maximum 2^32-1 characters.Vec<u8>
with maximum 2^32-1 characters.VecDeque
with maximum 2^32-1 items of typeT
.HashMap
with maximum 2^32-1 items.HashSet
with maximum 2^32-1 items of typeT
.BTreeMap
with maximum 2^32-1 items.BTreeSet
with maximum 2^32-1 items of typeT
.String
with maximum 2^32-1 characters.Vec
with maximum 2^32-1 items of typeT
.AsciiString
with maximum 2^24-1 characters.Vec<u8>
with maximum 2^24-1 characters.VecDeque
with maximum 2^24-1 items of typeT
.HashMap
with maximum 2^24-1 items.HashSet
with maximum 2^24-1 items of typeT
.BTreeMap
with maximum 2^24-1 items.BTreeSet
with maximum 2^24-1 items of typeT
.String
with maximum 2^24-1 characters.Vec
with maximum 2^24-1 items of typeT
.AsciiString
which contains at least a single character.Vec<u8>
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.Vec<u8>
with maximum 2^16-1 characters.VecDeque
with maximum 2^16-1 items of typeT
.HashMap
with maximum 2^16-1 items.HashSet
with maximum 2^16-1 items of typeT
.BTreeMap
with maximum 2^16-1 items.BTreeSet
with maximum 2^16-1 items of typeT
.String
with maximum 2^16-1 characters.Vec
with maximum 2^16-1 items of typeT
.AsciiString
with maximum 255 characters.Vec<u8>
with maximum 255 characters.VecDeque
with maximum 255 items of typeT
.HashMap
with maximum 255 items.HashSet
with maximum 255 items of typeT
.BTreeMap
with maximum 255 items.BTreeSet
with maximum 255 items of typeT
.String
with maximum 255 characters.Vec
with maximum 255 items of typeT
.