Expand description
arrayvec provides the types ArrayVec
and ArrayString
:
array-backed vector and string types, which store their contents inline.
The arrayvec package has the following cargo features:
-
std
- Optional, enabled by default
- Use libstd; disable to use
no_std
instead.
-
serde
- Optional
- Enable serialization for ArrayVec and ArrayString using serde 1.x
-
array-sizes-33-128
,array-sizes-129-255
- Optional
- Enable more array sizes (see Array for more information)
-
unstable-const-fn
- Optional
- Makes
ArrayVec::new
andArrayString::new
const fn
s, using the nightlyconst_fn
feature. - Unstable and requires nightly.
§Rust Version
This version of arrayvec requires Rust 1.36 or later.
Structs§
- A string with a fixed capacity.
- A vector with a fixed capacity.
- Error value indicating insufficient capacity
- A draining iterator for
ArrayVec
. - By-value iterator for
ArrayVec
.
Traits§
- Trait for fixed size arrays.