Home
last modified time | relevance | path

Searched refs:MatchedArg (Results 1 - 5 of 5) sorted by relevance

/third_party/rust/crates/clap/src/parser/
H A Darg_matcher.rs11 use crate::parser::{ArgMatches, MatchedArg, SubCommand, ValueSource};
59 vals_map: &mut FlatMap<Id, MatchedArg>, in fill_in_global_values()
67 // a default value of `other` myprog would have an existing MatchedArg for in fill_in_global_values()
96 pub(crate) fn get(&self, arg: &Id) -> Option<&MatchedArg> {
100 pub(crate) fn get_mut(&mut self, arg: &Id) -> Option<&mut MatchedArg> {
116 pub(crate) fn args(&self) -> crate::util::flat_map::Iter<'_, Id, MatchedArg> {
120 pub(crate) fn entry(&mut self, arg: Id) -> crate::util::Entry<Id, MatchedArg> {
142 let ma = self.entry(id).or_insert(MatchedArg::new_arg(arg));
153 let ma = self.entry(id).or_insert(MatchedArg::new_group());
162 let ma = self.entry(id).or_insert(MatchedArg
[all...]
H A Dmod.rs15 pub(crate) use self::matches::{MatchedArg, SubCommand};
/third_party/rust/crates/clap/src/parser/matches/
H A Dmatched_arg.rs16 pub(crate) struct MatchedArg {
25 impl MatchedArg { impls
184 impl PartialEq for MatchedArg {
185 fn eq(&self, other: &MatchedArg) -> bool { in eq()
186 let MatchedArg { in eq()
194 let MatchedArg { in eq()
210 impl Eq for MatchedArg {}
218 let mut m = MatchedArg::new_group(); in test_grouped_vals_first()
H A Darg_matches.rs13 use crate::parser::MatchedArg;
71 pub(crate) args: FlatMap<Id, MatchedArg>,
633 value.and_then(MatchedArg::source) in value_source()
1231 fn try_get_arg(&self, arg: &str) -> Result<Option<&MatchedArg>, MatchesError> { in try_get_arg()
1240 ) -> Result<Option<&MatchedArg>, MatchesError> { in try_get_arg_t()
1255 ) -> Result<Option<MatchedArg>, MatchesError> { in try_remove_arg_t()
1276 arg: &MatchedArg, in verify_arg_t()
1307 fn get_arg<'s>(&'s self, arg: &str) -> Option<&'s MatchedArg> { in get_arg()
H A Dmod.rs16 pub(crate) use matched_arg::MatchedArg;

Completed in 4 milliseconds