Trait ToBoxed
Other items indairy
pub trait ToBoxed: ToOwned { fn to_boxed(o: Self::Owned) -> Box<Self>; }
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.
.into_boxed()
Cow
fn to_boxed(o: Self::Owned) -> Box<Self>
impl ToBoxed for str
impl<T: Clone> ToBoxed for [T]
impl ToBoxed for CStr
impl ToBoxed for OsStr
impl ToBoxed for Path