Trait std::borrow::IntoCow
[−]
[src]
pub trait IntoCow<'a, B> where B: ToOwned + ?Sized {
fn into_cow(self) -> Cow<'a, B>;
}Unstable
: may be replaced by convert::Into`convert::Into`
Trait for moving into a Cow`Cow`.
Required Methods
fn into_cow(self) -> Cow<'a, B>
Unstable
: may be replaced by convert::Into`convert::Into`
Moves self`selfinto` into Cow`Cow`
Implementors
impl<'a, B> IntoCow<'a, B> for Cow<'a, B> where B: ToOwned + ?Sizedimpl IntoCow<'static, str> for Stringimpl<'a> IntoCow<'a, str> for &'a strimpl<'a, T> IntoCow<'a, [T]> for Vec<T> where T: 'a + Cloneimpl<'a, T> IntoCow<'a, [T]> for &'a [T] where T: Cloneimpl IntoCow<'static, Path> for PathBufimpl<'a> IntoCow<'a, Path> for &'a Path