[−][src]Crate collectable
This crate provides a set of traits that can be used to abstract over
various collection types. In particular, it supports traits for fallible
operations (such as TryExtend
) which are useful for supporting
fixed-capacity containers, such as heapless::Vec
or tinyvec::Array
.
Traits
Collection | Collection types implement all of the traits in this crate. |
Length | Obtain the length of a collection. |
Truncate | Truncate the collection to the provided length. |
TryCollect |
|
TryExtend | Fallible equivalent of |
TryFromIterator | Try to build a collection type from an |
TryPush | Try to push an element onto a collection |