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
BTreeMapof a given type - confined_
bset Deprecated - Helper macro to construct confined
BTreeSetof a given type - confined_
map Deprecated - Helper macro to construct confined
HashMapof a given type - confined_
s Deprecated - Helper macro to construct confined string
- confined_
set Deprecated - Helper macro to construct confined
HashSetof 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
MediumBlobtype - medium_
bmap - Helper macro to construct confined
BTreeMapof aMediumOrdMaptype - medium_
bset - Helper macro to construct confined
BTreeSetof aMediumOrdSettype - medium_
map - Helper macro to construct confined
HashMapof aMediumHashMaptype - medium_
s - Helper macro to construct confined string of a
MediumStringtype - medium_
set - Helper macro to construct confined
HashSetof aMediumHashSettype - medium_
vec - Helper macro to construct confined vector of a
MediumVectype - small_
blob - Helper macro to construct confined blob of a
SmallBlobtype - small_
bmap - Helper macro to construct confined
BTreeMapof aSmallOrdMaptype - small_
bset - Helper macro to construct confined
BTreeSetof aSmallOrdSettype - small_
map - Helper macro to construct confined
HashMapof aSmallHashMaptype - small_s
- Helper macro to construct confined string of a
SmallStringtype - small_
set - Helper macro to construct confined
HashSetof aSmallHashSettype - small_
vec - Helper macro to construct confined vector of a
SmallVectype - tiny_
blob - Helper macro to construct confined blob of a
TinyBlobtype - tiny_
bmap - Helper macro to construct confined
BTreeMapof aTinyOrdMaptype - tiny_
bset - Helper macro to construct confined
BTreeSetof aTinyOrdSettype - tiny_
map - Helper macro to construct confined
HashMapof aTinyHashMaptype - tiny_s
- Helper macro to construct confined string of a
TinyStringtype - tiny_
set - Helper macro to construct confined
HashSetof aTinyHashSettype - tiny_
vec - Helper macro to construct confined vector of a
TinyVectype
Structs§
- Confined
- The confinement for the collection.
Enums§
- Ascii
Error - Errors generated by constructing confined
AsciiStringfromstr. - 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 AsciiStringwith maximum 2^32-1 characters.- Large
Blob Vec<u8>with maximum 2^32-1 characters.- Large
Deque VecDequewith maximum 2^32-1 items of typeT.- Large
Hash Map HashMapwith maximum 2^32-1 items.- Large
Hash Set HashSetwith maximum 2^32-1 items of typeT.- Large
OrdMap BTreeMapwith maximum 2^32-1 items.- Large
OrdSet BTreeSetwith maximum 2^32-1 items of typeT.- Large
String Stringwith maximum 2^32-1 characters.- Large
Vec Vecwith maximum 2^32-1 items of typeT.- Medium
Ascii AsciiStringwith maximum 2^24-1 characters.- Medium
Blob Vec<u8>with maximum 2^24-1 characters.- Medium
Deque VecDequewith maximum 2^24-1 items of typeT.- Medium
Hash Map HashMapwith maximum 2^24-1 items.- Medium
Hash Set HashSetwith maximum 2^24-1 items of typeT.- Medium
OrdMap BTreeMapwith maximum 2^24-1 items.- Medium
OrdSet BTreeSetwith maximum 2^24-1 items of typeT.- Medium
String Stringwith maximum 2^24-1 characters.- Medium
Vec Vecwith maximum 2^24-1 items of typeT.- NonEmpty
Ascii AsciiStringwhich contains at least a single character.- NonEmpty
Blob Vec<u8>which contains at least a single character.- NonEmpty
Deque VecDequewhich contains at least a single item.- NonEmpty
Hash Map HashMapwhich contains at least a single item.- NonEmpty
Hash Set HashSetwhich contains at least a single item.- NonEmpty
OrdMap BTreeMapwhich contains at least a single item.- NonEmpty
OrdSet BTreeSetwhich contains at least a single item.- NonEmpty
String Stringwhich contains at least a single character.- NonEmpty
Vec Vecwhich contains at least a single item.- Small
Ascii AsciiStringwith maximum 2^16-1 characters.- Small
Blob Vec<u8>with maximum 2^16-1 characters.- Small
Deque VecDequewith maximum 2^16-1 items of typeT.- Small
Hash Map HashMapwith maximum 2^16-1 items.- Small
Hash Set HashSetwith maximum 2^16-1 items of typeT.- Small
OrdMap BTreeMapwith maximum 2^16-1 items.- Small
OrdSet BTreeSetwith maximum 2^16-1 items of typeT.- Small
String Stringwith maximum 2^16-1 characters.- Small
Vec Vecwith maximum 2^16-1 items of typeT.- Tiny
Ascii AsciiStringwith maximum 255 characters.- Tiny
Blob Vec<u8>with maximum 255 characters.- Tiny
Deque VecDequewith maximum 255 items of typeT.- Tiny
Hash Map HashMapwith maximum 255 items.- Tiny
Hash Set HashSetwith maximum 255 items of typeT.- Tiny
OrdMap BTreeMapwith maximum 255 items.- Tiny
OrdSet BTreeSetwith maximum 255 items of typeT.- Tiny
String Stringwith maximum 255 characters.- TinyVec
Vecwith maximum 255 items of typeT.