Movatterモバイル変換


[0]ホーム

URL:


Cow

std::borrow

EnumCow 

1.0.0 ·Source
pub enum Cow<'a, B>
where B: 'a +ToOwned + ?Sized,
{ Borrowed(&'a B), Owned(<B asToOwned>::Owned),}
Expand description

A clone-on-write smart pointer.

The typeCow is a smart pointer providing clone-on-write functionality: itcan enclose and provide immutable access to borrowed data, and clone thedata lazily when mutation or ownership is required. The type is designed towork with general borrowed data via theBorrow trait.

Cow implementsDeref, which means that you can callnon-mutating methods directly on the data it encloses. If mutationis desired,to_mut will obtain a mutable reference to an ownedvalue, cloning if necessary.

If you need reference-counting pointers, note thatRc::make_mut andArc::make_mut can provide clone-on-writefunctionality as well.

§Examples

usestd::borrow::Cow;fnabs_all(input:&mutCow<'_, [i32]>) {foriin0..input.len() {letv = input[i];ifv <0{// Clones into a vector if not already owned.input.to_mut()[i] = -v;        }    }}// No clone occurs because `input` doesn't need to be mutated.letslice = [0,1,2];letmutinput = Cow::from(&slice[..]);abs_all(&mutinput);// Clone occurs because `input` needs to be mutated.letslice = [-1,0,1];letmutinput = Cow::from(&slice[..]);abs_all(&mutinput);// No clone occurs because `input` is already owned.letmutinput = Cow::from(vec![-1,0,1]);abs_all(&mutinput);

Another example showing how to keepCow in a struct:

usestd::borrow::Cow;structItems<'a, X>where[X]: ToOwned<Owned = Vec<X>> {    values: Cow<'a, [X]>,}impl<'a, X: Clone +'a> Items<'a, X>where[X]: ToOwned<Owned = Vec<X>> {fnnew(v: Cow<'a, [X]>) ->Self{        Items { values: v }    }}// Creates a container from borrowed values of a sliceletreadonly = [1,2];letborrowed = Items::new((&readonly[..]).into());matchborrowed {    Items { values: Cow::Borrowed(b) } =>println!("borrowed {b:?}"),_=>panic!("expect borrowed value"),}letmutclone_on_write = borrowed;// Mutates the data from slice into owned vec and pushes a new value on topclone_on_write.values.to_mut().push(3);println!("clone_on_write = {:?}", clone_on_write.values);// The data was mutated. Let's check it out.matchclone_on_write {    Items { values: Cow::Owned(_) } =>println!("clone_on_write contains owned data"),_=>panic!("expect owned data"),}

Variants§

§1.0.0

Borrowed(&'a B)

Borrowed data.

§1.0.0

Owned(<B asToOwned>::Owned)

Owned data.

Implementations§

Source§

impl<B>Cow<'_, B>
where B:ToOwned + ?Sized,

Source

pub const fnis_borrowed(c: &Cow<'_, B>) ->bool

🔬This is a nightly-only experimental API. (cow_is_borrowed #65143)

Returns true if the data is borrowed, i.e. ifto_mut would require additional work.

Note: this is an associated function, which means that you have to callit asCow::is_borrowed(&c) instead ofc.is_borrowed(). This is sothat there is no conflict with a method on the inner type.

§Examples
#![feature(cow_is_borrowed)]usestd::borrow::Cow;letcow = Cow::Borrowed("moo");assert!(Cow::is_borrowed(&cow));letbull: Cow<'_, str> = Cow::Owned("...moo?".to_string());assert!(!Cow::is_borrowed(&bull));
Source

pub const fnis_owned(c: &Cow<'_, B>) ->bool

🔬This is a nightly-only experimental API. (cow_is_borrowed #65143)

Returns true if the data is owned, i.e. ifto_mut would be a no-op.

Note: this is an associated function, which means that you have to callit asCow::is_owned(&c) instead ofc.is_owned(). This is so thatthere is no conflict with a method on the inner type.

§Examples
#![feature(cow_is_borrowed)]usestd::borrow::Cow;letcow: Cow<'_, str> = Cow::Owned("moo".to_string());assert!(Cow::is_owned(&cow));letbull = Cow::Borrowed("...moo?");assert!(!Cow::is_owned(&bull));
1.0.0 ·Source

pub fnto_mut(&mut self) -> &mut <B asToOwned>::Owned

Acquires a mutable reference to the owned form of the data.

Clones the data if it is not already owned.

§Examples
usestd::borrow::Cow;letmutcow = Cow::Borrowed("foo");cow.to_mut().make_ascii_uppercase();assert_eq!(  cow,  Cow::Owned(String::from("FOO"))asCow<'_, str>);
1.0.0 ·Source

pub fninto_owned(self) -> <B asToOwned>::Owned

Extracts the owned data.

Clones the data if it is not already owned.

§Examples

Callinginto_owned on aCow::Borrowed returns a clone of the borrowed data:

usestd::borrow::Cow;lets ="Hello world!";letcow = Cow::Borrowed(s);assert_eq!(  cow.into_owned(),  String::from(s));

Callinginto_owned on aCow::Owned returns the owned data. The data is moved out of theCow without being cloned.

usestd::borrow::Cow;lets ="Hello world!";letcow: Cow<'_, str> = Cow::Owned(String::from(s));assert_eq!(  cow.into_owned(),  String::from(s));

Trait Implementations§

1.14.0 ·Source§

impl<'a>Add<&'astr> forCow<'a,str>

Source§

typeOutput =Cow<'a,str>

The resulting type after applying the+ operator.
Source§

fnadd(self, rhs: &'astr) -> <Cow<'a,str> asAdd<&'astr>>::Output

Performs the+ operation.Read more
1.14.0 ·Source§

impl<'a>Add forCow<'a,str>

Source§

typeOutput =Cow<'a,str>

The resulting type after applying the+ operator.
Source§

fnadd(self, rhs:Cow<'a,str>) -> <Cow<'a,str> asAdd>::Output

Performs the+ operation.Read more
1.14.0 ·Source§

impl<'a>AddAssign<&'astr> forCow<'a,str>

Source§

fnadd_assign(&mut self, rhs: &'astr)

Performs the+= operation.Read more
1.14.0 ·Source§

impl<'a>AddAssign forCow<'a,str>

Source§

fnadd_assign(&mut self, rhs:Cow<'a,str>)

Performs the+= operation.Read more
1.8.0 ·Source§

implAsRef<Path> forCow<'_,OsStr>

Source§

fnas_ref(&self) -> &Path

Converts this type into a shared reference of the (usually inferred) input type.
1.0.0 ·Source§

impl<T>AsRef<T> forCow<'_, T>
where T:ToOwned + ?Sized,

Source§

fnas_ref(&self) ->&T

Converts this type into a shared reference of the (usually inferred) input type.
1.0.0 ·Source§

impl<'a, B>Borrow<B> forCow<'a, B>
where B:ToOwned + ?Sized,

Source§

fnborrow(&self) ->&B

Immutably borrows from an owned value.Read more
1.0.0 ·Source§

impl<B>Clone forCow<'_, B>
where B:ToOwned + ?Sized,

Source§

fnclone(&self) ->Cow<'_, B>

Returns a duplicate of the value.Read more
Source§

fnclone_from(&mut self, source: &Cow<'_, B>)

Performs copy-assignment fromsource.Read more
1.0.0 ·Source§

impl<B>Debug forCow<'_, B>
where B:Debug +ToOwned + ?Sized, <B asToOwned>::Owned:Debug,

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Formats the value using the given formatter.Read more
1.11.0 ·Source§

impl<B>Default forCow<'_, B>
where B:ToOwned + ?Sized, <B asToOwned>::Owned:Default,

Source§

fndefault() ->Cow<'_, B>

Creates an owned Cow<’a, B> with the default value for the contained owned value.

1.0.0 ·Source§

impl<B>Deref forCow<'_, B>
where B:ToOwned + ?Sized,

Source§

typeTarget = B

The resulting type after dereferencing.
Source§

fnderef(&self) ->&B

Dereferences the value.
1.0.0 ·Source§

impl<B>Display forCow<'_, B>
where B:Display +ToOwned + ?Sized, <B asToOwned>::Owned:Display,

Source§

fnfmt(&self, f: &mutFormatter<'_>) ->Result<(),Error>

Formats the value using the given formatter.Read more
1.52.0 ·Source§

impl<'a>Extend<Cow<'a,OsStr>> forOsString

Source§

fnextend<T:IntoIterator<Item =Cow<'a,OsStr>>>(&mut self, iter: T)

Extends a collection with the contents of an iterator.Read more
Source§

fnextend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
Source§

fnextend_reserve(&mut self, additional:usize)

🔬This is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements.Read more
1.19.0 ·Source§

impl<'a>Extend<Cow<'a,str>> forString

Source§

fnextend<I>(&mut self, iter: I)
where I:IntoIterator<Item =Cow<'a,str>>,

Extends a collection with the contents of an iterator.Read more
Source§

fnextend_one(&mut self, s:Cow<'a,str>)

🔬This is a nightly-only experimental API. (extend_one #72631)
Extends a collection with exactly one element.
Source§

fnextend_reserve(&mut self, additional:usize)

🔬This is a nightly-only experimental API. (extend_one #72631)
Reserves capacity in a collection for the given number of additional elements.Read more
1.8.0 ·Source§

impl<'a, T>From<&'a[T]> forCow<'a,[T]>
where T:Clone,

Source§

fnfrom(s: &'a[T]) ->Cow<'a,[T]>

Creates aBorrowed variant ofCowfrom a slice.

This conversion does not allocate or clone the data.

1.77.0 ·Source§

impl<'a, T, const N:usize>From<&'a[T; N]> forCow<'a,[T]>
where T:Clone,

Source§

fnfrom(s: &'a[T; N]) ->Cow<'a,[T]>

Creates aBorrowed variant ofCowfrom a reference to an array.

This conversion does not allocate or clone the data.

Source§

impl<'a>From<&'aByteStr> forCow<'a,ByteStr>

Source§

fnfrom(s: &'aByteStr) ->Cow<'a,ByteStr>

Converts to this type from the input type.
Source§

impl<'a>From<&'aByteString> forCow<'a,ByteStr>

Source§

fnfrom(s: &'aByteString) ->Cow<'a,ByteStr>

Converts to this type from the input type.
1.28.0 ·Source§

impl<'a>From<&'aCStr> forCow<'a,CStr>

Source§

fnfrom(s: &'aCStr) ->Cow<'a,CStr>

Converts aCStr into a borrowedCow without copying or allocating.

1.28.0 ·Source§

impl<'a>From<&'aCString> forCow<'a,CStr>

Source§

fnfrom(s: &'aCString) ->Cow<'a,CStr>

Converts a&CString into a borrowedCow without copying or allocating.

1.28.0 ·Source§

impl<'a>From<&'aOsStr> forCow<'a,OsStr>

Source§

fnfrom(s: &'aOsStr) ->Cow<'a,OsStr>

Converts the string reference into aCow::Borrowed.

1.28.0 ·Source§

impl<'a>From<&'aOsString> forCow<'a,OsStr>

Source§

fnfrom(s: &'aOsString) ->Cow<'a,OsStr>

Converts the string reference into aCow::Borrowed.

1.6.0 ·Source§

impl<'a>From<&'aPath> forCow<'a,Path>

Source§

fnfrom(s: &'aPath) ->Cow<'a,Path>

Creates a clone-on-write pointer from a reference toPath.

This conversion does not clone or allocate.

1.28.0 ·Source§

impl<'a>From<&'aPathBuf> forCow<'a,Path>

Source§

fnfrom(p: &'aPathBuf) ->Cow<'a,Path>

Creates a clone-on-write pointer from a reference toPathBuf.

This conversion does not clone or allocate.

1.28.0 ·Source§

impl<'a>From<&'aString> forCow<'a,str>

Source§

fnfrom(s: &'aString) ->Cow<'a,str>

Converts aString reference into aBorrowed variant.No heap allocation is performed, and the stringis not copied.

§Example
lets ="eggplant".to_string();assert_eq!(Cow::from(&s), Cow::Borrowed("eggplant"));
1.28.0 ·Source§

impl<'a, T>From<&'aVec<T>> forCow<'a,[T]>
where T:Clone,

Source§

fnfrom(v: &'aVec<T>) ->Cow<'a,[T]>

Creates aBorrowed variant ofCowfrom a reference toVec.

This conversion does not allocate or clone the data.

1.0.0 ·Source§

impl<'a>From<&'astr> forCow<'a,str>

Source§

fnfrom(s: &'astr) ->Cow<'a,str>

Converts a string slice into aBorrowed variant.No heap allocation is performed, and the stringis not copied.

§Example
assert_eq!(Cow::from("eggplant"), Cow::Borrowed("eggplant"));
Source§

impl<'a>From<ByteString> forCow<'a,ByteStr>

Source§

fnfrom(s:ByteString) ->Cow<'a,ByteStr>

Converts to this type from the input type.
1.28.0 ·Source§

impl<'a>From<CString> forCow<'a,CStr>

Source§

fnfrom(s:CString) ->Cow<'a,CStr>

Converts aCString into an ownedCow without copying or allocating.

1.45.0 ·Source§

impl<T>From<Cow<'_,[T]>> forBox<[T]>
where T:Clone,

Source§

fnfrom(cow:Cow<'_,[T]>) ->Box<[T]>

Converts aCow<'_, [T]> into aBox<[T]>

Whencow is theCow::Borrowed variant, thisconversion allocates on the heap and copies theunderlying slice. Otherwise, it will try to reuse the ownedVec’s allocation.

1.45.0 ·Source§

implFrom<Cow<'_,CStr>> forBox<CStr>

Source§

fnfrom(cow:Cow<'_,CStr>) ->Box<CStr>

Converts aCow<'a, CStr> into aBox<CStr>,by copying the contents if they are borrowed.

1.45.0 ·Source§

implFrom<Cow<'_,OsStr>> forBox<OsStr>

Source§

fnfrom(cow:Cow<'_,OsStr>) ->Box<OsStr>

Converts aCow<'a, OsStr> into aBox<OsStr>,by copying the contents if they are borrowed.

1.45.0 ·Source§

implFrom<Cow<'_,Path>> forBox<Path>

Source§

fnfrom(cow:Cow<'_,Path>) ->Box<Path>

Creates a boxedPath from a clone-on-write pointer.

Converting from aCow::Owned does not clone or allocate.

1.45.0 ·Source§

implFrom<Cow<'_,str>> forBox<str>

Source§

fnfrom(cow:Cow<'_,str>) ->Box<str>

Converts aCow<'_, str> into aBox<str>

Whencow is theCow::Borrowed variant, thisconversion allocates on the heap and copies theunderlyingstr. Otherwise, it will try to reuse the ownedString’s allocation.

§Examples
usestd::borrow::Cow;letunboxed = Cow::Borrowed("hello");letboxed: Box<str> = Box::from(unboxed);println!("{boxed}");
letunboxed = Cow::Owned("hello".to_string());letboxed: Box<str> = Box::from(unboxed);println!("{boxed}");
1.14.0 ·Source§

impl<'a, T>From<Cow<'a,[T]>> forVec<T>
where[T]:ToOwned<Owned =Vec<T>>,

Source§

fnfrom(s:Cow<'a,[T]>) ->Vec<T>

Converts a clone-on-write slice into a vector.

Ifs already owns aVec<T>, it will be returned directly.Ifs is borrowing a slice, a newVec<T> will be allocated andfilled by clonings’s items into it.

§Examples
leto: Cow<'_, [i32]> = Cow::Owned(vec![1,2,3]);letb: Cow<'_, [i32]> = Cow::Borrowed(&[1,2,3]);assert_eq!(Vec::from(o), Vec::from(b));
1.45.0 ·Source§

impl<'a, B>From<Cow<'a, B>> forArc<B>
where B:ToOwned + ?Sized,Arc<B>:From<&'a B> +From<<B asToOwned>::Owned>,

Source§

fnfrom(cow:Cow<'a, B>) ->Arc<B>

Creates an atomically reference-counted pointer from a clone-on-writepointer by copying its content.

§Example
letcow: Cow<'_, str> = Cow::Borrowed("eggplant");letshared: Arc<str> = Arc::from(cow);assert_eq!("eggplant",&shared[..]);
1.45.0 ·Source§

impl<'a, B>From<Cow<'a, B>> forRc<B>
where B:ToOwned + ?Sized,Rc<B>:From<&'a B> +From<<B asToOwned>::Owned>,

Source§

fnfrom(cow:Cow<'a, B>) ->Rc<B>

Creates a reference-counted pointer from a clone-on-write pointer bycopying its content.

§Example
letcow: Cow<'_, str> = Cow::Borrowed("eggplant");letshared: Rc<str> = Rc::from(cow);assert_eq!("eggplant",&shared[..]);
1.28.0 ·Source§

impl<'a>From<Cow<'a,CStr>> forCString

Source§

fnfrom(s:Cow<'a,CStr>) ->CString

Converts aCow<'a, CStr> into aCString, by copying the contents if they areborrowed.

1.28.0 ·Source§

impl<'a>From<Cow<'a,OsStr>> forOsString

Source§

fnfrom(s:Cow<'a,OsStr>) -> Self

Converts aCow<'a, OsStr> into anOsString,by copying the contents if they are borrowed.

1.28.0 ·Source§

impl<'a>From<Cow<'a,Path>> forPathBuf

Source§

fnfrom(p:Cow<'a,Path>) -> Self

Converts a clone-on-write pointer to an owned path.

Converting from aCow::Owned does not clone or allocate.

1.14.0 ·Source§

impl<'a>From<Cow<'a,str>> forString

Source§

fnfrom(s:Cow<'a,str>) ->String

Converts a clone-on-write string to an ownedinstance ofString.

This extracts the owned string,clones the string if it is not already owned.

§Example
// If the string is not owned...letcow: Cow<'_, str> = Cow::Borrowed("eggplant");// It will allocate on the heap and copy the string.letowned: String = String::from(cow);assert_eq!(&owned[..],"eggplant");
1.22.0 ·Source§

impl<'a, 'b>From<Cow<'b,str>> forBox<dynError + 'a>

Source§

fnfrom(err:Cow<'b,str>) ->Box<dynError + 'a>

Converts aCow into a box of dynError.

§Examples
usestd::error::Error;usestd::borrow::Cow;leta_cow_str_error = Cow::from("a str error");leta_boxed_error = Box::<dynError>::from(a_cow_str_error);assert!(size_of::<Box<dynError>>() == size_of_val(&a_boxed_error))
1.22.0 ·Source§

impl<'a, 'b>From<Cow<'b,str>> forBox<dynError +Send +Sync + 'a>

Source§

fnfrom(err:Cow<'b,str>) ->Box<dynError +Send +Sync + 'a>

Converts aCow into a box of dynError +Send +Sync.

§Examples
usestd::error::Error;usestd::borrow::Cow;leta_cow_str_error = Cow::from("a str error");leta_boxed_error = Box::<dynError + Send + Sync>::from(a_cow_str_error);assert!(    size_of::<Box<dynError + Send + Sync>>() == size_of_val(&a_boxed_error))
1.28.0 ·Source§

impl<'a>From<OsString> forCow<'a,OsStr>

Source§

fnfrom(s:OsString) ->Cow<'a,OsStr>

Moves the string into aCow::Owned.

1.6.0 ·Source§

impl<'a>From<PathBuf> forCow<'a,Path>

Source§

fnfrom(s:PathBuf) ->Cow<'a,Path>

Creates a clone-on-write pointer from an ownedinstance ofPathBuf.

This conversion does not clone or allocate.

1.0.0 ·Source§

impl<'a>From<String> forCow<'a,str>

Source§

fnfrom(s:String) ->Cow<'a,str>

Converts aString into anOwned variant.No heap allocation is performed, and the stringis not copied.

§Example
lets ="eggplant".to_string();lets2 ="eggplant".to_string();assert_eq!(Cow::from(s), Cow::<'static, str>::Owned(s2));
1.8.0 ·Source§

impl<'a, T>From<Vec<T>> forCow<'a,[T]>
where T:Clone,

Source§

fnfrom(v:Vec<T>) ->Cow<'a,[T]>

Creates anOwned variant ofCowfrom an owned instance ofVec.

This conversion does not allocate or clone the data.

1.12.0 ·Source§

impl<'a, 'b>FromIterator<&'bstr> forCow<'a,str>

Source§

fnfrom_iter<I>(it: I) ->Cow<'a,str>
where I:IntoIterator<Item = &'bstr>,

Creates a value from an iterator.Read more
Source§

impl<'a>FromIterator<AsciiChar> forCow<'a,str>

Source§

fnfrom_iter<T>(it: T) ->Cow<'a,str>
where T:IntoIterator<Item =AsciiChar>,

Creates a value from an iterator.Read more
1.52.0 ·Source§

impl<'a>FromIterator<Cow<'a,OsStr>> forOsString

Source§

fnfrom_iter<I:IntoIterator<Item =Cow<'a,OsStr>>>(iter: I) -> Self

Creates a value from an iterator.Read more
1.80.0 ·Source§

impl<'a>FromIterator<Cow<'a,str>> forBox<str>

Source§

fnfrom_iter<T>(iter: T) ->Box<str>
where T:IntoIterator<Item =Cow<'a,str>>,

Creates a value from an iterator.Read more
1.19.0 ·Source§

impl<'a>FromIterator<Cow<'a,str>> forString

Source§

fnfrom_iter<I>(iter: I) ->String
where I:IntoIterator<Item =Cow<'a,str>>,

Creates a value from an iterator.Read more
1.12.0 ·Source§

impl<'a>FromIterator<String> forCow<'a,str>

Source§

fnfrom_iter<I>(it: I) ->Cow<'a,str>
where I:IntoIterator<Item =String>,

Creates a value from an iterator.Read more
1.0.0 ·Source§

impl<'a, T>FromIterator<T> forCow<'a,[T]>
where T:Clone,

Source§

fnfrom_iter<I>(it: I) ->Cow<'a,[T]>
where I:IntoIterator<Item = T>,

Creates a value from an iterator.Read more
1.12.0 ·Source§

impl<'a>FromIterator<char> forCow<'a,str>

Source§

fnfrom_iter<I>(it: I) ->Cow<'a,str>
where I:IntoIterator<Item =char>,

Creates a value from an iterator.Read more
1.0.0 ·Source§

impl<B>Hash forCow<'_, B>
where B:Hash +ToOwned + ?Sized,

Source§

fnhash<H>(&self, state:&mut H)
where H:Hasher,

Feeds this value into the givenHasher.Read more
1.3.0 ·Source§

fnhash_slice<H>(data: &[Self], state:&mut H)
where H:Hasher, Self:Sized,

Feeds a slice of this type into the givenHasher.Read more
1.0.0 ·Source§

impl<B>Ord forCow<'_, B>
where B:Ord +ToOwned + ?Sized,

Source§

fncmp(&self, other: &Cow<'_, B>) ->Ordering

This method returns anOrdering betweenself andother.Read more
1.21.0 ·Source§

fnmax(self, other: Self) -> Self
where Self:Sized,

Compares and returns the maximum of two values.Read more
1.21.0 ·Source§

fnmin(self, other: Self) -> Self
where Self:Sized,

Compares and returns the minimum of two values.Read more
1.50.0 ·Source§

fnclamp(self, min: Self, max: Self) -> Self
where Self:Sized,

Restrict a value to a certain interval.Read more
1.0.0 ·Source§

impl<T, U>PartialEq<&[U]> forCow<'_,[T]>
where T:PartialEq<U> +Clone,

Source§

fneq(&self, other: &&[U]) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &&[U]) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<&'aByteStr> forCow<'a, [u8]>

Source§

fneq(&self, other: &&'aByteStr) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<&'aByteStr> forCow<'a,ByteStr>

Source§

fneq(&self, other: &&'aByteStr) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<&'aByteStr> forCow<'a,str>

Source§

fneq(&self, other: &&'aByteStr) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.90.0 ·Source§

implPartialEq<&CStr> forCow<'_,CStr>

Source§

fneq(&self, other: &&CStr) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &&CStr) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<&'bOsStr> forCow<'a,OsStr>

Source§

fneq(&self, other: &&'bOsStr) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<&'bOsStr> forCow<'a,Path>

Source§

fneq(&self, other: &&'bOsStr) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.6.0 ·Source§

impl<'a, 'b>PartialEq<&'bPath> forCow<'a,Path>

Source§

fneq(&self, other: &&'bPath) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<&'aPath> forCow<'b,OsStr>

Source§

fneq(&self, other: &&'aPath) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<T, U>PartialEq<&mut[U]> forCow<'_,[T]>
where T:PartialEq<U> +Clone,

Source§

fneq(&self, other: &&mut[U]) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &&mut[U]) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<'a, 'b>PartialEq<&'bstr> forCow<'a,str>

Source§

fneq(&self, other: &&'bstr) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &&'bstr) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<ByteString> forCow<'_, [u8]>

Source§

fneq(&self, other: &ByteString) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<ByteString> forCow<'_,ByteStr>

Source§

fneq(&self, other: &ByteString) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<ByteString> forCow<'_,str>

Source§

fneq(&self, other: &ByteString) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.90.0 ·Source§

implPartialEq<CStr> forCow<'_,CStr>

Source§

fneq(&self, other: &CStr) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &CStr) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.90.0 ·Source§

implPartialEq<CString> forCow<'_,CStr>

Source§

fneq(&self, other: &CString) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &CString) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<Cow<'_, [u8]>> forByteString

Source§

fneq(&self, other: &Cow<'_, [u8]>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<Cow<'_,ByteStr>> forByteString

Source§

fneq(&self, other: &Cow<'_,ByteStr>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.90.0 ·Source§

implPartialEq<Cow<'_,CStr>> forCStr

Source§

fneq(&self, other: &Cow<'_,CStr>) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &Cow<'_,CStr>) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.90.0 ·Source§

implPartialEq<Cow<'_,CStr>> forCString

Source§

fneq(&self, other: &Cow<'_,CStr>) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &Cow<'_,CStr>) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<Cow<'_,str>> forByteString

Source§

fneq(&self, other: &Cow<'_,str>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<Cow<'a, [u8]>> for &'aByteStr

Source§

fneq(&self, other: &Cow<'a, [u8]>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<Cow<'a,ByteStr>> for &'aByteStr

Source§

fneq(&self, other: &Cow<'a,ByteStr>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'a,OsStr>> for &'bOsStr

Source§

fneq(&self, other: &Cow<'a,OsStr>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'a,OsStr>> forOsStr

Source§

fneq(&self, other: &Cow<'a,OsStr>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'a,OsStr>> forOsString

Source§

fneq(&self, other: &Cow<'a,OsStr>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a>PartialEq<Cow<'a,OsStr>> forPath

Source§

fneq(&self, other: &Cow<'a,OsStr>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a>PartialEq<Cow<'a,OsStr>> forPathBuf

Source§

fneq(&self, other: &Cow<'a,OsStr>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'a,Path>> for &'bOsStr

Source§

fneq(&self, other: &Cow<'a,Path>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.6.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'a,Path>> for &'bPath

Source§

fneq(&self, other: &Cow<'a,Path>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a>PartialEq<Cow<'a,Path>> forOsStr

Source§

fneq(&self, other: &Cow<'a,Path>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a>PartialEq<Cow<'a,Path>> forOsString

Source§

fneq(&self, other: &Cow<'a,Path>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.6.0 ·Source§

impl<'a>PartialEq<Cow<'a,Path>> forPath

Source§

fneq(&self, other: &Cow<'a,Path>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.6.0 ·Source§

impl<'a>PartialEq<Cow<'a,Path>> forPathBuf

Source§

fneq(&self, other: &Cow<'a,Path>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialEq<Cow<'a,str>> for &'aByteStr

Source§

fneq(&self, other: &Cow<'a,str>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'a,str>> for &'bstr

Source§

fneq(&self, other: &Cow<'a,str>) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &Cow<'a,str>) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'a,str>> forString

Source§

fneq(&self, other: &Cow<'a,str>) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &Cow<'a,str>) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'a,str>> forstr

Source§

fneq(&self, other: &Cow<'a,str>) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &Cow<'a,str>) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<'a, 'b, B, C>PartialEq<Cow<'b, C>> forCow<'a, B>
where B:PartialEq<C> +ToOwned + ?Sized, C:ToOwned + ?Sized,

Source§

fneq(&self, other: &Cow<'b, C>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<Cow<'b,OsStr>> for &'aPath

Source§

fneq(&self, other: &Cow<'b,OsStr>) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<OsStr> forCow<'a,OsStr>

Source§

fneq(&self, other: &OsStr) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a>PartialEq<OsStr> forCow<'a,Path>

Source§

fneq(&self, other: &OsStr) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a, 'b>PartialEq<OsString> forCow<'a,OsStr>

Source§

fneq(&self, other: &OsString) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a>PartialEq<OsString> forCow<'a,Path>

Source§

fneq(&self, other: &OsString) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a>PartialEq<Path> forCow<'a,OsStr>

Source§

fneq(&self, other: &Path) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.6.0 ·Source§

impl<'a>PartialEq<Path> forCow<'a,Path>

Source§

fneq(&self, other: &Path) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.8.0 ·Source§

impl<'a>PartialEq<PathBuf> forCow<'a,OsStr>

Source§

fneq(&self, other: &PathBuf) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.6.0 ·Source§

impl<'a>PartialEq<PathBuf> forCow<'a,Path>

Source§

fneq(&self, other: &PathBuf) ->bool

Tests forself andother values to be equal, and is used by==.
1.0.0 ·Source§

fnne(&self, other:&Rhs) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<'a, 'b>PartialEq<String> forCow<'a,str>

Source§

fneq(&self, other: &String) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &String) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<T, U, A>PartialEq<Vec<U, A>> forCow<'_,[T]>
where A:Allocator, T:PartialEq<U> +Clone,

Source§

fneq(&self, other: &Vec<U, A>) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &Vec<U, A>) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
1.0.0 ·Source§

impl<'a, 'b>PartialEq<str> forCow<'a,str>

Source§

fneq(&self, other: &str) ->bool

Tests forself andother values to be equal, and is used by==.
Source§

fnne(&self, other: &str) ->bool

Tests for!=. The default implementation is almost always sufficient,and should not be overridden without very good reason.
Source§

impl<'a>PartialOrd<&'aByteStr> forCow<'a, [u8]>

Source§

fnpartial_cmp(&self, other: &&'aByteStr) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<&'aByteStr> forCow<'a,ByteStr>

Source§

fnpartial_cmp(&self, other: &&'aByteStr) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<&'aByteStr> forCow<'a,str>

Source§

fnpartial_cmp(&self, other: &&'aByteStr) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<&'bOsStr> forCow<'a,OsStr>

Source§

fnpartial_cmp(&self, other: &&'bOsStr) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<&'bOsStr> forCow<'a,Path>

Source§

fnpartial_cmp(&self, other: &&'bOsStr) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<&'bPath> forCow<'a,Path>

Source§

fnpartial_cmp(&self, other: &&'bPath) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<&'aPath> forCow<'b,OsStr>

Source§

fnpartial_cmp(&self, other: &&'aPath) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<ByteString> forCow<'_, [u8]>

Source§

fnpartial_cmp(&self, other: &ByteString) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<ByteString> forCow<'_,ByteStr>

Source§

fnpartial_cmp(&self, other: &ByteString) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<ByteString> forCow<'_,str>

Source§

fnpartial_cmp(&self, other: &ByteString) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<Cow<'_, [u8]>> forByteString

Source§

fnpartial_cmp(&self, other: &Cow<'_, [u8]>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<Cow<'_,ByteStr>> forByteString

Source§

fnpartial_cmp(&self, other: &Cow<'_,ByteStr>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<Cow<'_,str>> forByteString

Source§

fnpartial_cmp(&self, other: &Cow<'_,str>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<Cow<'a, [u8]>> for &'aByteStr

Source§

fnpartial_cmp(&self, other: &Cow<'a, [u8]>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<Cow<'a,ByteStr>> for &'aByteStr

Source§

fnpartial_cmp(&self, other: &Cow<'a,ByteStr>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<Cow<'a,OsStr>> for &'bOsStr

Source§

fnpartial_cmp(&self, other: &Cow<'a,OsStr>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<Cow<'a,OsStr>> forOsStr

Source§

fnpartial_cmp(&self, other: &Cow<'a,OsStr>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<Cow<'a,OsStr>> forOsString

Source§

fnpartial_cmp(&self, other: &Cow<'a,OsStr>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<Cow<'a,OsStr>> forPath

Source§

fnpartial_cmp(&self, other: &Cow<'a,OsStr>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<Cow<'a,OsStr>> forPathBuf

Source§

fnpartial_cmp(&self, other: &Cow<'a,OsStr>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<Cow<'a,Path>> for &'bOsStr

Source§

fnpartial_cmp(&self, other: &Cow<'a,Path>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<Cow<'a,Path>> for &'bPath

Source§

fnpartial_cmp(&self, other: &Cow<'a,Path>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<Cow<'a,Path>> forOsStr

Source§

fnpartial_cmp(&self, other: &Cow<'a,Path>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<Cow<'a,Path>> forOsString

Source§

fnpartial_cmp(&self, other: &Cow<'a,Path>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<Cow<'a,Path>> forPath

Source§

fnpartial_cmp(&self, other: &Cow<'a,Path>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<Cow<'a,Path>> forPathBuf

Source§

fnpartial_cmp(&self, other: &Cow<'a,Path>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<'a>PartialOrd<Cow<'a,str>> for &'aByteStr

Source§

fnpartial_cmp(&self, other: &Cow<'a,str>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<Cow<'b,OsStr>> for &'aPath

Source§

fnpartial_cmp(&self, other: &Cow<'b,OsStr>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<OsStr> forCow<'a,OsStr>

Source§

fnpartial_cmp(&self, other: &OsStr) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<OsStr> forCow<'a,Path>

Source§

fnpartial_cmp(&self, other: &OsStr) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a, 'b>PartialOrd<OsString> forCow<'a,OsStr>

Source§

fnpartial_cmp(&self, other: &OsString) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<OsString> forCow<'a,Path>

Source§

fnpartial_cmp(&self, other: &OsString) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<Path> forCow<'a,OsStr>

Source§

fnpartial_cmp(&self, other: &Path) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<Path> forCow<'a,Path>

Source§

fnpartial_cmp(&self, other: &Path) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<PathBuf> forCow<'a,OsStr>

Source§

fnpartial_cmp(&self, other: &PathBuf) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.8.0 ·Source§

impl<'a>PartialOrd<PathBuf> forCow<'a,Path>

Source§

fnpartial_cmp(&self, other: &PathBuf) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
1.0.0 ·Source§

impl<'a, B>PartialOrd forCow<'a, B>
where B:PartialOrd +ToOwned + ?Sized,

Source§

fnpartial_cmp(&self, other: &Cow<'a, B>) ->Option<Ordering>

This method returns an ordering betweenself andother values if one exists.Read more
1.0.0 ·Source§

fnlt(&self, other:&Rhs) ->bool

Tests less than (forself andother) and is used by the< operator.Read more
1.0.0 ·Source§

fnle(&self, other:&Rhs) ->bool

Tests less than or equal to (forself andother) and is used by the<= operator.Read more
1.0.0 ·Source§

fngt(&self, other:&Rhs) ->bool

Tests greater than (forself andother) and is used by the>operator.Read more
1.0.0 ·Source§

fnge(&self, other:&Rhs) ->bool

Tests greater than or equal to (forself andother) and is used bythe>= operator.Read more
Source§

impl<T>DerefPure forCow<'_,[T]>
where T:Clone,

Source§

impl<T>DerefPure forCow<'_, T>
where T:Clone,

Source§

implDerefPure forCow<'_,str>

1.0.0 ·Source§

impl<B>Eq forCow<'_, B>
where B:Eq +ToOwned + ?Sized,

Auto Trait Implementations§

§

impl<'a, B>Freeze forCow<'a, B>
where <B asToOwned>::Owned:Freeze, B: ?Sized,

§

impl<'a, B>RefUnwindSafe forCow<'a, B>

§

impl<'a, B>Send forCow<'a, B>
where <B asToOwned>::Owned:Send, B:Sync + ?Sized,

§

impl<'a, B>Sync forCow<'a, B>
where <B asToOwned>::Owned:Sync, B:Sync + ?Sized,

§

impl<'a, B>Unpin forCow<'a, B>
where <B asToOwned>::Owned:Unpin, B: ?Sized,

§

impl<'a, B>UnwindSafe forCow<'a, B>

Blanket Implementations§

Source§

impl<T>Any for T
where T: 'static + ?Sized,

Source§

fntype_id(&self) ->TypeId

Gets theTypeId ofself.Read more
Source§

impl<T>Borrow<T> for T
where T: ?Sized,

Source§

fnborrow(&self) ->&T

Immutably borrows from an owned value.Read more
Source§

impl<T>BorrowMut<T> for T
where T: ?Sized,

Source§

fnborrow_mut(&mut self) ->&mut T

Mutably borrows from an owned value.Read more
Source§

impl<T>CloneToUninit for T
where T:Clone,

Source§

unsafe fnclone_to_uninit(&self, dest:*mutu8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment fromself todest.Read more
Source§

impl<T>From<T> for T

Source§

fnfrom(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U>Into<U> for T
where U:From<T>,

Source§

fninto(self) -> U

CallsU::from(self).

That is, this conversion is whatever the implementation ofFrom<T> for U chooses to do.

Source§

impl<P, T>Receiver for P
where P:Deref<Target = T> + ?Sized, T: ?Sized,

Source§

typeTarget = T

🔬This is a nightly-only experimental API. (arbitrary_self_types #44874)
The target type on which the method may be called.
Source§

impl<T>ToOwned for T
where T:Clone,

Source§

typeOwned = T

The resulting type after obtaining ownership.
Source§

fnto_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning.Read more
Source§

fnclone_into(&self, target:&mut T)

Uses borrowed data to replace owned data, usually by cloning.Read more
Source§

impl<T>ToString for T
where T:Display + ?Sized,

Source§

fnto_string(&self) ->String

Converts the given value to aString.Read more
Source§

impl<T, U>TryFrom<U> for T
where U:Into<T>,

Source§

typeError =Infallible

The type returned in the event of a conversion error.
Source§

fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U>TryInto<U> for T
where U:TryFrom<T>,

Source§

typeError = <U asTryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>

Performs the conversion.

[8]ページ先頭

©2009-2026 Movatter.jp