Implement PartialEq<str> for String and Cow

This commit is contained in:
Gleb Kozyrev 2015-04-02 18:51:14 +03:00
parent 63c01cea2d
commit 52340630a6

View file

@ -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")]