Trait std::borrow::IntoCow
[−]
[src]
pub trait IntoCow<'a, B> where B: ToOwned + ?Sized {
fn into_cow(self) -> Cow<'a, B>;
}
Trait for moving into a Cow
.
Required Methods
Implementors
impl<'a, B> IntoCow<'a, B> for Cow<'a, B> where B: ToOwned + ?Sized
impl IntoCow<'static, str> for String
impl<'a> IntoCow<'a, str> for &'a str
impl<'a, T> IntoCow<'a, [T]> for Vec<T> where T: 'a + Clone
impl<'a, T> IntoCow<'a, [T]> for &'a [T] where T: Clone
impl IntoCow<'static, Path> for PathBuf
impl<'a> IntoCow<'a, Path> for &'a Path