pub struct Command<'a> {
pub command_name: &'static str,
pub short_description: &'static str,
pub flags_after_position_arguments: bool,
pub flags: &'a mut [Flag<'a>],
pub positional: Option<Arguments<'a>>,
}Fields§
§command_name: &'static str§short_description: &'static str§flags_after_position_arguments: bool§flags: &'a mut [Flag<'a>]§positional: Option<Arguments<'a>>Implementations§
Source§impl<'a> Command<'a>
impl<'a> Command<'a>
pub fn parse_args( &mut self, input_args: &mut Vec<&str>, command_prefix: &str, type_of_command: &TypeOfCommand, ) -> Result<ParseArgumentAction, String>
pub fn positional( self, args: (&'static str, usize, usize), field: &'a mut dyn FlagParser, ) -> Self
pub fn print_small_overview( &self, command_prefix: &str, type_of_command: &TypeOfCommand, )
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Command<'a>
impl<'a> !RefUnwindSafe for Command<'a>
impl<'a> !Send for Command<'a>
impl<'a> !Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> !UnwindSafe for Command<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more