Currently it can't be called from a const fn
, which is sad :-(
Ordinarily I'd take a pass at implementing this myself, but str::ends_with
is slightly more complex than meets the eye because of the Pattern
abstraction, and I'm not particularly sure how that's best handled.