Crate deref_owned
source · [−]Expand description
Smart pointer owning its pointee and trait which allows conversion into owned type
deref_owned
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>
Box<T>
Structs
Smart pointer to owned inner value
Traits
Pointer types that can be converted into an owned type