macro_rules! not_prefix {
    ($name: ident, $prefix: expr) => { ... };
}
Expand description

Used in parsing.

Examples

use elipdotter::*;
use elipdotter::query::Part;
not_prefix!(HyphenNot, "-");
let opts = elipdotter::query::ParseOptions::default().insert(HyphenNot::default());
let part = elipdotter::query::parse("elipdotter -search", opts).unwrap();
assert_eq!(part, Part::and("elipdotter", Part::not("search")));