Skip to main content

Crate fixed_vec

Crate fixed_vec 

Source

Macros§

name
Create a Named with a given value. This will create an anonymous type that’s unique to the macro invokation. Note that since this gives a type that’s impossible to name properly, use wildcards and generics when passing them around.

Structs§

BorrowedFixedVec
A borrowed version of a FixedVec, created with a named &Vec<A> instead of a named Vec<A>
BorrowedMutFixedVec
A mutably borrowed version of a FixedVec, created with a named &mut Vec<A> instead of a named Vec<A>. Most of the methods are identical to those of FixedVec, with the difference between the two types being that FixedVec: 'static.
CheckedRange
A range of valid indices into a FixedVec with name Name. This cannot be created except through the check_range method of a FixedVec.
FixedVec
A wrapper around a Vec that ensures that any valid indices will always remain valid. In practice, this means a FixedVec will never shrink in size (it can, however, grow in size).
Index
A valid index into a FixedVec with name Name. This cannot be created directly except through the check_index method of the same FixedVec.
Named
An owned value which has name Name. This type is unique to this Named, so it can be used to enforce compile-time coherency

Functions§

name
Create a named value. You probably don’t want to use this, but instead want to use the name!() macro that calls this.