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§

Converts an object which owns its contents into one which borrows them.

Implementors§