Lines Matching refs:CommandFactory
16 /// [`CommandFactory`] which uses those two underlying traits to build the two
79 pub trait Parser: FromArgMatches + CommandFactory + Sized {
82 let mut matches = <Self as CommandFactory>::command().get_matches();
97 let mut matches = ok!(<Self as CommandFactory>::command().try_get_matches());
107 let mut matches = <Self as CommandFactory>::command().get_matches_from(itr);
126 let mut matches = ok!(<Self as CommandFactory>::command().try_get_matches_from(itr));
136 let mut matches = <Self as CommandFactory>::command_for_update().get_matches_from(itr);
153 ok!(<Self as CommandFactory>::command_for_update().try_get_matches_from(itr));
162 pub trait CommandFactory: Sized {
291 /// See also [`CommandFactory`].
297 /// See also [`CommandFactory`].
333 /// See also [`CommandFactory`].
339 /// See also [`CommandFactory`].
423 impl<T: CommandFactory> CommandFactory for Box<T> {
425 <T as CommandFactory>::command()
428 <T as CommandFactory>::command_for_update()
468 fn format_error<I: CommandFactory>(err: crate::Error) -> crate::Error {