This crate provides interop between the arrayvec and generic_array crates, allowing you to
use generic_array's GenericArray
as the backing storage for the data structures in
arrayvec. This lets you have vector and string types that store their contents inline, with a
capacity that can be referred to in generic code.
Usage
This crate exposes the type aliases GenericArrayVec
s and GenericArrayString
, which are
aliases of datatypes in the arrayvec
crate. See the ArrayVec
and ArrayString
docs
to learn about their functionality. Each one also has a corresponding extension trait
GenericArrayVecExt
and GenericArrayStringExt
that provide additional constructors and
conversions.
An example of instantiating and pushing an item onto a GenericArrayVec
:
use ;
// Create a new GenericArrayVec of inferred element type with a capacity of 5
let mut arr = new;
arr.push;