Lines Matching refs:Cow

20 use Cow::*;
23 impl<'a, B: ?Sized> Borrow<B> for Cow<'a, B> implementation
183 pub enum Cow<'a, B: ?Sized + 'a> enum
197 impl<B: ?Sized + ToOwned> Clone for Cow<'_, B> { implementation
216 impl<B: ?Sized + ToOwned> Cow<'_, B> { impl
336 impl<B: ?Sized + ToOwned> const Deref for Cow<'_, B> implementation
351 impl<B: ?Sized> Eq for Cow<'_, B> where B: Eq + ToOwned {} implementation
354 impl<B: ?Sized> Ord for Cow<'_, B> implementation
365 impl<'a, 'b, B: ?Sized, C: ?Sized> PartialEq<Cow<'b, C>> for Cow<'a, B> implementation
371 fn eq(&self, other: &Cow<'b, C>) -> bool { in eq()
377 impl<'a, B: ?Sized> PartialOrd for Cow<'a, B> implementation
382 fn partial_cmp(&self, other: &Cow<'a, B>) -> Option<Ordering> { in partial_cmp()
388 impl<B: ?Sized> fmt::Debug for Cow<'_, B> implementation
401 impl<B: ?Sized> fmt::Display for Cow<'_, B> implementation
414 impl<B: ?Sized> Default for Cow<'_, B> implementation
425 impl<B: ?Sized> Hash for Cow<'_, B> implementation
436 impl<T: ?Sized + ToOwned> AsRef<T> for Cow<'_, T> { implementation
444 impl<'a> Add<&'a str> for Cow<'a, str> { implementation
445 type Output = Cow<'a, str>;
456 impl<'a> Add<Cow<'a, str>> for Cow<'a, str> { implementation
457 type Output = Cow<'a, str>;
460 fn add(mut self, rhs: Cow<'a, str>) -> Self::Output { in add()
468 impl<'a> AddAssign<&'a str> for Cow<'a, str> { implementation
471 *self = Cow::Borrowed(rhs) in add_assign()
473 if let Cow::Borrowed(lhs) = *self { in add_assign()
476 *self = Cow::Owned(s); in add_assign()
485 impl<'a> AddAssign<Cow<'a, str>> for Cow<'a, str> { implementation
486 fn add_assign(&mut self, rhs: Cow<'a, str>) { in add_assign()
490 if let Cow::Borrowed(lhs) = *self { in add_assign()
493 *self = Cow::Owned(s); in add_assign()