Implement PartialEq<str> for String and Cow
This commit is contained in:
parent
63c01cea2d
commit
52340630a6
1 changed files with 2 additions and 0 deletions
|
|
@ -822,7 +822,9 @@ macro_rules! impl_eq {
|
|||
}
|
||||
}
|
||||
|
||||
impl_eq! { String, str }
|
||||
impl_eq! { String, &'a str }
|
||||
impl_eq! { Cow<'a, str>, str }
|
||||
impl_eq! { Cow<'a, str>, String }
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue