Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
Note: the word "static" here is meant by the traditional definition of "unchanging" / "not dynamic" etc.
This crate does not use literal static
variables for anything.
Fully #![no_std]
compatible (with almost no loss of functionality) by setting
default-features = false
for the staticvec
dependency in your Cargo.toml
.
Optional support for serialization and deserialization of the StaticVec
struct
via serde
is available by activating the serde_support
feature.
StaticVec
also implements both Deref
and DerefMut
to [T]
, meaning that all existing slice
methods are accessible through instances of it and that references to it can be used in contexts
where [T]
is expected.
Contributions/suggestions/etc. very welcome!
Minimum supported Rust version: due to the use of const generics, this is a nightly-only crate at the moment.
A basic usage example:
use ;
License:
Licensed under either the MIT license or version 2.0 of the Apache License. Your choice as to which! Any source code contributions will be dual-licensed in the same fashion.