A stack-allocated sequence that mirror's Vec's API,
but:
- Implements [
Copy] (and can only hold [Copy] types). - Does not grow.
- Is
#[no_std]/no-alloccompatible.
// const-friendly
const VEC: = new;
// easy initialising
let mut vec = copyvec!;
// ^~ with excess capacity
// use the API's you know
vec.push;
// including iteration
for it in &mut vec
assert_eq!;
vec.retain;
assert_eq!;
Other features
If you like this crate, you may also enjoy stackstack