Trait into_owned::IntoOwned[][src]

pub trait IntoOwned<T: ?Sized + ToOwned>: Borrow<T> {
    fn into_owned(self) -> T::Owned;
}
Expand description

Extension to ToOwned. Avoiding clones where possible

Required methods

Implementations on Foreign Types

Default implemetation for references. IntoOwned::into_owned() will perform ToOwned::to_owned()

Default implemetation for Cow. IntoOwned::into_owned() will perform Cow::into_owned()

Implementors