Crate bounded_vec

Source
Expand description

Non-empty Vec wrapper with lower and upper bounds on items quantity

Modules§

witnesses
Module for type witnesses used to prove vector bounds at compile time

Structs§

BoundedVec
Non-empty Vec bounded with minimal (L - lower bound) and maximal (U - upper bound) items quantity.

Enums§

BoundedVecOutOfBounds
BoundedVec errors

Traits§

OptBoundedVecToVec
Option<BoundedVec<T, _, _>> to Vec

Type Aliases§

EmptyBoundedVec
Possibly empty Vec with upper-bound on its length
NonEmptyBoundedVec
Non-empty Vec with bounded length
NonEmptyVec
A non-empty Vec with no effective upper-bound on its length