dairy
A more compact, user friendly implementation of Cow.
- Optimized for use on 64-bit Unix systems (behind
unixfeature). - Much better support for
Cow<Path>andCow<OsStr>.
use Path;
use Cow;
let name: = "Hello World!".into;
let path: = "./path/to/file.txt".into;
Caveats
- Only
str,OsStr,CStrandPathtypes are supported. OsStr,CStrandPathare only supported on Unix.- On 32-bit operating systems the maximum length of types is (2¹⁶ - 1).
Acknowledgements
Some implementation details taken from the excellent beef crate.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.