This crate provides a smart pointer Owned
, which points to an owned value.
It's similar to Cow
, except that it's always owning its pointee. Moreover, a
trait IntoOwned
is provided, which allows conversion of pointers to an owned
value though an .into_owned()
method. The trait IntoOwned
is implemented
for:
&'a T where T: ?Sized + ToOwned
Cow<'a, T> where T: ?Sized + ToOwned
Owned<T>