Std::str return matched char for "starts_with", "strip_prefix" and other methods that take in a Pattern

I think this proposal for substring pattern matching is also relevant.

For your concrete usecase I would use the complete operator representation (==, =, >=, ...) as prefix. Much better readability and probably also better performance.