Crate bounded_collections

Source
Expand description

Collection types that have an upper limit on how many elements that they can contain, and supporting traits that aid in defining the limit.

Re-exports§

pub extern crate alloc;
pub use bounded_btree_map::BoundedBTreeMap;
pub use bounded_btree_set::BoundedBTreeSet;
pub use bounded_vec::BoundedSlice;
pub use bounded_vec::BoundedVec;
pub use const_int::ConstInt;
pub use const_int::ConstUint;
pub use weak_bounded_vec::WeakBoundedVec;

Modules§

bounded_btree_map
Traits, types and structs to support a bounded BTreeMap.
bounded_btree_set
Traits, types and structs to support a bounded BTreeSet.
bounded_vec
Traits, types and structs to support putting a bounded vector into storage, as a raw value, map or a double map.
const_int
weak_bounded_vec
Traits, types and structs to support putting a bounded vector into storage, as a raw value, map or a double map.

Macros§

bounded_btree_map
Build a bounded btree-map from the given literals.
bounded_vec
Build a bounded vec from the given literals.
parameter_types
Create new implementations of the Get trait.

Structs§

ConstBool
Const getter for a basic type.
ConstI8
Const getter for a basic type.
ConstI16
Const getter for a basic type.
ConstI32
Const getter for a basic type.
ConstI64
Const getter for a basic type.
ConstI128
Const getter for a basic type.
ConstU8
Const getter for a basic type.
ConstU16
Const getter for a basic type.
ConstU32
Const getter for a basic type.
ConstU64
Const getter for a basic type.
ConstU128
Const getter for a basic type.
GetDefault
Implement Get by returning Default for any type that implements Default.

Traits§

Get
A trait for querying a single value from a type.
TryCollect
Try and collect into a collection C.
TypedGet
A trait for querying a single value from a type defined in the trait.