Lines Matching refs:ArgPredicate
3 use crate::builder::{Arg, ArgGroup, ArgPredicate, Command, PossibleValue};
58 .filter(|(_, matched)| matched.check_explicit(&ArgPredicate::IsPresent)) in validate()
102 .filter(|(_, matched)| matched.check_explicit(&ArgPredicate::IsPresent)) in validate_conflicts()
118 matched.check_explicit(&crate::builder::ArgPredicate::IsPresent) in validate_exclusive()
131 .filter(|(_, matched)| matched.check_explicit(&crate::builder::ArgPredicate::IsPresent)) in validate_exclusive()
198 .filter(|(_, matched)| matched.check_explicit(&ArgPredicate::IsPresent)) in build_conflict_err_usage()
224 .filter(|(_, matched)| matched.check_explicit(&ArgPredicate::IsPresent)) in gather_requires()
228 let is_relevant = |(val, req_arg): &(ArgPredicate, Id)| -> Option<Id> { in gather_requires()
254 .filter(|(_, matched)| matched.check_explicit(&ArgPredicate::IsPresent)) in validate_required()
269 .filter(|r| !matcher.check_explicit(r, &ArgPredicate::IsPresent)) in validate_required()
290 .any(|a| matcher.check_explicit(a, &ArgPredicate::IsPresent)) in validate_required()
305 .filter(|a| !matcher.check_explicit(a.get_id(), &ArgPredicate::IsPresent)) in validate_required()
310 if matcher.check_explicit(other, &ArgPredicate::Equals(val.into())) { in validate_required()
320 matcher.check_explicit(other, &ArgPredicate::Equals(val.into())) in validate_required()
353 .filter(|a| !matcher.check_explicit(a.get_id(), &ArgPredicate::IsPresent)) in validate_required()
390 let exists = |id| matcher.check_explicit(id, &ArgPredicate::IsPresent); in fails_arg_required_unless()
444 .filter(|(_, matched)| matched.check_explicit(&ArgPredicate::IsPresent)) in missing_required_error()
473 .filter(|(_, matched)| matched.check_explicit(&ArgPredicate::IsPresent)) in with_args()