We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
String
&String
1 parent d972108 commit f7320e2Copy full SHA for f7320e2
library/alloc/src/string.rs
@@ -2531,6 +2531,7 @@ macro_rules! impl_eq {
2531
2532
impl_eq! { String, str }
2533
impl_eq! { String, &'a str }
2534
+impl_eq! { String, &String }
2535
impl_eq! { &String, str }
2536
#[cfg(not(no_global_oom_handling))]
2537
impl_eq! { Cow<'a, str>, str }
@@ -2566,6 +2567,7 @@ macro_rules! impl_ord {
2566
2567
impl_ord! { String, str }
2568
impl_ord! { String, &'a str }
2569
impl_ord! { &String, str }
2570
+impl_ord! { String, &String }
2571
2572
impl_ord! { Cow<'a, str>, str }
2573
0 commit comments