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
certain pointers into 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>
OwnedRef<T>
(also provided byderef_owned
)
Structs
Smart pointer to owned inner value
Smart pointer to value pointed-to by owned inner value
Traits
Pointer types that can be converted into an owned type