Closed
Description
Several methods on the str
type take a generic "predicate" on characters:
split
and friendstrim_chars
and friendsfind
and friends
The CharEq
trait makes character predicates convenient by providing instances for char
, various char -> bool
function types, and slices of characters.
Vector slices should provide a similar interface. Right now, some of the relevant slice methods operate on individual items, while others take bool
-producing functions.
Unfortunately, this is blocked on trait reform (#5527).
Metadata
Metadata
Assignees
Labels
No labels