Functional Vec
Owning versions of all mutable vec methods. Makes vecs slightly more ergonomic to use in folds.
Supports no_std
environments using the alloc
crate directly.
Example
use FunctionalVec;
let v = .fold;
assert_eq!;
Other types
This crate supports std::vec::Vec
and std::collections::VecDeque
by default. smallvec::SmallVec
from the crate smallvec
(Version
1.10) is also supported if you enable the smallvec
feature.