predicates-rs icon indicating copy to clipboard operation
predicates-rs copied to clipboard

Smarter `find_case` for `eq_file`

Open epage opened this issue 7 years ago • 1 comments

Right now, its a default implementation

Ideally

  • For Str, perform difference where applicable
    • Do we also need to do this for eval? Not sure if there is a difference

epage avatar Jul 30 '18 23:07 epage

Wouldn't it be nice to make case finders composable? Something like

use predicates::str::Diff as _;

predicate::path::eq_file(p).utf8().diff()

would not change how eval works, but would modify the case finder into what DifferencePredicate uses now.

mzabaluev avatar May 27 '20 17:05 mzabaluev