calf-vec 0.2.0-alpha

Small copy-on-write arrays, essentially combining `SmallVec` and `Cow`
Documentation

Small copy-on-write arrays for Rust

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.

Basic usage

TODO

License

Licensed under either of

at your option.

Contribution

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.