Trait static_cow::IntoOwning
source · pub trait IntoOwning<'o>: ToOwning<'o> + Sized {
fn into_owning(self) -> Self::Owning;
}Expand description
A trait for types that can be converted into ones which own their contents.
IntoOwning has a blanket implementation for T where T : Clone, wherein
into_owning is the identity function. User-defined types which implement
IntoOwning but not Clone typically should do so by calling
into_owning() on all their fields.
Required Methods§
sourcefn into_owning(self) -> Self::Owning
fn into_owning(self) -> Self::Owning
Converts an object which owns its contents into one which borrows them.