Trait IntoOwned

Source
pub trait IntoOwned: Sized {
    type Owned: 'static;

    // Required method
    fn into_owned(self) -> Self::Owned;
}
Expand description

Used to produce an owned version of a given data.

Required Associated Types§

Source

type Owned: 'static

The resulting type after obtaining ownership.

Required Methods§

Source

fn into_owned(self) -> Self::Owned

Creates owned data from data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§