pub trait ToBoxed: ToOwned {
// Required method
fn to_boxed(o: Self::Owned) -> Box<Self>;
}Expand description
Converts the owned version of self into boxed data.
This trait should not be used directly but instead through the
.into_boxed() method on Cow.
Required Methods§
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.