Documentation | Crate informations | Repository |
This crate provides the CalfVec
data structure for small copy-on-write arrays.
As long as the data is not written to, it is only borrowed.
When owned, the data is stored on the stack as long as it is small enough.
Data is only moved on the heap as a last resort.
This is basically the intersection between
SmallVec
and
Cow
("small cow" = "calf").
Additionally this crate provides a CalfString
for small copy-on-write strings
based on CalfVec
.
TODO
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.