pub trait IntoOwned: Copy + Deref {
type ROwned: Borrow<Self::Target>;
// Required method
fn into_owned(self) -> Self::ROwned;
}
Expand description
For cloning a reference-like type into a (preferably ffi-safe) owned type.
Required Associated Types§
Required Methods§
Sourcefn into_owned(self) -> Self::ROwned
fn into_owned(self) -> Self::ROwned
Performs the colne.
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.