Borrowed-Or-oWned
Provide a Borrowed-Or-oWned smart pointer.
Alternative to Cow
for which the Clone
trait is not required for
the encapsulated type.
Use this crate if you want something like Cow
but your type cannot be
cloned.
You can find the rustdoc here.
How to use
extern crate boow;
use Bow;
// This struct contains a type for which we cannot know at compile time
// whether it will be owned or borrowed.
no_std
If you're interested in using this crate with no_std
and the alloc
crate,
add the following to Cargo.toml
:
[]
= { = "0.1", = false }