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 confined
BTreeMap
of a given type - confined_
bset Deprecated - Helper macro to construct confined
BTreeSet
of a given type - confined_
map Deprecated - Helper macro to construct confined
HashMap
of a given type - confined_
s Deprecated - Helper macro to construct confined string
- confined_
set Deprecated - Helper macro to construct confined
HashSet
of a given type - confined_
vec Deprecated - Helper macro to construct confined vector of a given type
- medium_
blob - Helper macro to construct confined blob of a
MediumBlob
type - medium_
bmap - Helper macro to construct confined
BTreeMap
of aMediumOrdMap
type - medium_
bset - Helper macro to construct confined
BTreeSet
of aMediumOrdSet
type - medium_
map - Helper macro to construct confined
HashMap
of aMediumHashMap
type - medium_
s - Helper macro to construct confined string of a
MediumString
type - medium_
set - Helper macro to construct confined
HashSet
of aMediumHashSet
type - medium_
vec - Helper macro to construct confined vector of a
MediumVec
type - small_
blob - Helper macro to construct confined blob of a
SmallBlob
type - small_
bmap - Helper macro to construct confined
BTreeMap
of aSmallOrdMap
type - small_
bset - Helper macro to construct confined
BTreeSet
of aSmallOrdSet
type - small_
map - Helper macro to construct confined
HashMap
of aSmallHashMap
type - small_s
- Helper macro to construct confined string of a
SmallString
type - small_
set - Helper macro to construct confined
HashSet
of aSmallHashSet
type - small_
vec - Helper macro to construct confined vector of a
SmallVec
type - tiny_
blob - Helper macro to construct confined blob of a
TinyBlob
type - tiny_
bmap - Helper macro to construct confined
BTreeMap
of aTinyOrdMap
type - tiny_
bset - Helper macro to construct confined
BTreeSet
of aTinyOrdSet
type - tiny_
map - Helper macro to construct confined
HashMap
of aTinyHashMap
type - tiny_s
- Helper macro to construct confined string of a
TinyString
type - tiny_
set - Helper macro to construct confined
HashSet
of aTinyHashSet
type - tiny_
vec - Helper macro to construct confined vector of a
TinyVec
type
Structs§
- Confined
- The confinement for the collection.
Enums§
- Ascii
Error - Errors generated by constructing confined
AsciiString
fromstr
. - Error
- Errors when confinement constraints were not met.
Constants§
- ONE
- Constant for a minimal size of a confined collection.
- U8
- Constant for a maximal size of a confined collection equal to
u8::MAX
. - U16
- Constant for a maximal size of a confined collection equal to
u16::MAX
. - U24
- Constant for a maximal size of a confined collection equal to
u24::MAX
. - U32
- Constant for a maximal size of a confined collection equal to
u32::MAX
. - U64
- Constant for a maximal size of a confined collection equal to
u64::MAX
. - ZERO
- Constant for a minimal size of a confined collection.
Traits§
- Collection
- Trait implemented by a collection types which need to support collection confinement.
- Keyed
Collection - Trait implemented by key-value maps which need to support collection confinement.
Type Aliases§
- Confined
Ascii - Confined
AsciiString
. - Confined
Blob - Confined
Vec<u8>
. - Confined
Deque - Confined
VecDeque
. - Confined
Hash Map - Confined
HashMap
. - Confined
Hash Set - Confined
HashSet
. - Confined
OrdMap - Confined
BTreeMap
. - Confined
OrdSet - Confined
BTreeSet
. - Confined
String - Confined
String
. - Confined
Vec - Confined
Vec
. - Large
Ascii AsciiString
with maximum 2^32-1 characters.- Large
Blob Vec<u8>
with maximum 2^32-1 characters.- Large
Deque VecDeque
with maximum 2^32-1 items of typeT
.- Large
Hash Map HashMap
with maximum 2^32-1 items.- Large
Hash Set HashSet
with maximum 2^32-1 items of typeT
.- Large
OrdMap BTreeMap
with maximum 2^32-1 items.- Large
OrdSet BTreeSet
with maximum 2^32-1 items of typeT
.- Large
String String
with maximum 2^32-1 characters.- Large
Vec Vec
with maximum 2^32-1 items of typeT
.- Medium
Ascii AsciiString
with maximum 2^24-1 characters.- Medium
Blob Vec<u8>
with maximum 2^24-1 characters.- Medium
Deque VecDeque
with maximum 2^24-1 items of typeT
.- Medium
Hash Map HashMap
with maximum 2^24-1 items.- Medium
Hash Set HashSet
with maximum 2^24-1 items of typeT
.- Medium
OrdMap BTreeMap
with maximum 2^24-1 items.- Medium
OrdSet BTreeSet
with maximum 2^24-1 items of typeT
.- Medium
String String
with maximum 2^24-1 characters.- Medium
Vec Vec
with maximum 2^24-1 items of typeT
.- NonEmpty
Ascii AsciiString
which contains at least a single character.- NonEmpty
Blob Vec<u8>
which contains at least a single character.- NonEmpty
Deque VecDeque
which contains at least a single item.- NonEmpty
Hash Map HashMap
which contains at least a single item.- NonEmpty
Hash Set HashSet
which contains at least a single item.- NonEmpty
OrdMap BTreeMap
which contains at least a single item.- NonEmpty
OrdSet BTreeSet
which contains at least a single item.- NonEmpty
String String
which contains at least a single character.- NonEmpty
Vec Vec
which contains at least a single item.- Small
Ascii AsciiString
with maximum 2^16-1 characters.- Small
Blob Vec<u8>
with maximum 2^16-1 characters.- Small
Deque VecDeque
with maximum 2^16-1 items of typeT
.- Small
Hash Map HashMap
with maximum 2^16-1 items.- Small
Hash Set HashSet
with maximum 2^16-1 items of typeT
.- Small
OrdMap BTreeMap
with maximum 2^16-1 items.- Small
OrdSet BTreeSet
with maximum 2^16-1 items of typeT
.- Small
String String
with maximum 2^16-1 characters.- Small
Vec Vec
with maximum 2^16-1 items of typeT
.- Tiny
Ascii AsciiString
with maximum 255 characters.- Tiny
Blob Vec<u8>
with maximum 255 characters.- Tiny
Deque VecDeque
with maximum 255 items of typeT
.- Tiny
Hash Map HashMap
with maximum 255 items.- Tiny
Hash Set HashSet
with maximum 255 items of typeT
.- Tiny
OrdMap BTreeMap
with maximum 255 items.- Tiny
OrdSet BTreeSet
with maximum 255 items of typeT
.- Tiny
String String
with maximum 255 characters.- TinyVec
Vec
with maximum 255 items of typeT
.