pub fn diff<S>(orig: S) -> DifferencePredicate
Expand description
Creates a new Predicate
that diffs two strings.
ยงExamples
use predicates::prelude::*;
let predicate_fn = predicate::str::diff("Hello World");
assert_eq!(false, predicate_fn.eval("Hello World"));
assert_eq!(true, predicate_fn.eval("Goodbye World"));