Expand description
This library provides a Vec
-like data structure called ConstVec
where
elements can be pushed to the array in an immutable way as long as the
capacity of the vector is large enough).
§Example
use const_vec::ConstVec;
// Create a new empty `ConstVec` with a capacity of 10 items.
// Note that it is NOT mutable.
let vec = ConstVec::new(10);
// Add a new element in `vec`, without mutating it.
vec.push(42);