-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
A-strArea: str and StringArea: str and StringC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
let a = "a".to_string();
// compiles
println!("{}", "b" > &a);
// doesn't compile
// println!("{}", &a < "b");
We have impl PartialEq<str> for String
and impl PartialEq<&str> for String
, but no matching impls for PartialOrd
. Can we add these impls to round it out?
Osse, bertptrs, ecton and JayXonCraftSpider
Metadata
Metadata
Assignees
Labels
A-strArea: str and StringArea: str and StringC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.