Home
last modified time | relevance | path

Searched refs:Cow (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/rust/alloc/
Dborrow.rs20 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> { implementation
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()
[all …]
Dboxed.rs161 use crate::borrow::Cow;
1447 impl<T: Copy> From<Cow<'_, [T]>> for Box<[T]> {
1455 fn from(cow: Cow<'_, [T]>) -> Box<[T]> { in from()
1457 Cow::Borrowed(slice) => Box::from(slice), in from()
1458 Cow::Owned(slice) => Box::from(slice), in from()
1485 impl From<Cow<'_, str>> for Box<str> {
1510 fn from(cow: Cow<'_, str>) -> Box<str> { in from()
1512 Cow::Borrowed(s) => Box::from(s), in from()
1513 Cow::Owned(s) => Box::from(s), in from()
/Linux-v6.1/rust/alloc/vec/
Dpartial_eq.rs5 use crate::borrow::Cow;
33 __impl_slice_eq1! { [A: Allocator] Cow<'_, [T]>, Vec<U, A> where T: Clone, #[stable(feature = "rust…
35 __impl_slice_eq1! { [] Cow<'_, [T]>, &[U] where T: Clone, #[stable(feature = "rust1", since = "1.0.…
37 __impl_slice_eq1! { [] Cow<'_, [T]>, &mut [U] where T: Clone, #[stable(feature = "rust1", since = "…
Dmod.rs75 use crate::borrow::{Cow, ToOwned};
3018 impl<'a, T> From<Cow<'a, [T]>> for Vec<T>
3036 fn from(s: Cow<'a, [T]>) -> Vec<T> { in from()