7 releases (breaking)

0.6.0 Jan 19, 2022
0.5.0 Jan 12, 2022
0.4.0 Jan 12, 2022
0.3.0 Jan 12, 2022
0.1.0 May 17, 2020

#1036 in Algorithms

34 downloads per month
Used in 2 crates (via ilyvion-util)

Apache-2.0 OR MIT

14KB
280 lines

Borrow-or-owned values

This package contains types that let you use both borrowed and owned values interchangeably. Differs from Cow mainly in that it borrows mutably, and doesn't convert the borrowed type into the owned type on write.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Borrow-or-owned values.

This package contains types that let you use both borrowed and owned values interchangeably. Differs from Cow mainly in that it borrows mutably, and doesn't convert the borrowed type into the owned type on write.

No runtime deps