[][src]Crate staticvec

Macros

staticvec

Creates a new StaticVec from a vec!-style pseudo-slice. The newly created StaticVec will have a capacity and length exactly equal to the number of elements in the slice. The "array-like" [value; N] syntax is also supported, and both forms can be used in const contexts.

Structs

CapacityError

This error indicates that an operation was attempted that would have increased the length value of a StaticVec, but the StaticVec was already at its maximum capacity of N.

PushCapacityError

This error indicates that a push was attempted into a StaticVec which failed because the StaticVec was already at maximum capacity. It contains the value that failed to be pushed so that it can be reused if needed.

StaticVec

A Vec-like struct (mostly directly API-compatible where it can be) implemented with const generics around an array of fixed N capacity.

StaticVecIntoIter

A "consuming" iterator that reads each element out of a source StaticVec by value.

StaticVecIterConst

Similar to Iter, but specifically implemented with StaticVecs in mind.

StaticVecIterMut

Similar to IterMut, but specifically implemented with StaticVecs in mind.