pub trait IntoOwnedwhere
Self: Sized,{
type Owned;
// Required method
fn into_owned(self) -> Self::Owned;
// Provided method
fn clone_into(self, target: &mut Self::Owned) { ... }
}Expand description
An analog to the ToOwned trait from std that works for chunked views.
As the name suggests, this version of ToOwned takes self by value.
Required Associated Types§
Required Methods§
fn into_owned(self) -> Self::Owned
Provided Methods§
fn clone_into(self, target: &mut 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.
Implementations on Foreign Types§
Source§impl<S: ToOwned + ?Sized> IntoOwned for &S
Blanket implementation of IntoOwned for references of types that are already
std::borrow::ToOwned.
impl<S: ToOwned + ?Sized> IntoOwned for &S
Blanket implementation of IntoOwned for references of types that are already
std::borrow::ToOwned.
Source§impl<S: ToOwned + ?Sized> IntoOwned for &mut S
Blanket implementation of IntoOwned for mutable references of types that are
already std::borrow::ToOwned.
impl<S: ToOwned + ?Sized> IntoOwned for &mut S
Blanket implementation of IntoOwned for mutable references of types that are
already std::borrow::ToOwned.