pub trait MakeOwned: Clone {
type Owned: Clone + 'static;
// Required method
fn make_owned(self) -> Self::Owned;
}Expand description
Takes a value and transforms it to be 'static, cloning parts if necessary
Required Associated Types§
Sourcetype Owned: Clone + 'static
type Owned: Clone + 'static
This must be a 'static SUBTYPE of Self.
For more information see https://doc.rust-lang.org/reference/subtyping.html
Required Methods§
fn make_owned(self) -> Self::Owned
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.