pub struct Command3<'a, T1: Input, T2: Input, T3: Input> {
pub docs: DocInfo,
pub subcommands: Vec<Box<dyn Cmd + 'a>>,
pub handler: Option<Box<dyn FnMut(&T1, &T2, &T3) + 'a>>,
pub in1: T1,
pub in2: T2,
pub in3: T3,
}Fields§
§docs: DocInfo§subcommands: Vec<Box<dyn Cmd + 'a>>§handler: Option<Box<dyn FnMut(&T1, &T2, &T3) + 'a>>§in1: T1§in2: T2§in3: T3Implementations§
Trait Implementations§
source§impl<'a, T1, T2, T3> ParserInfo for Command3<'a, T1, T2, T3>where
T1: Input,
T2: Input,
T3: Input,
impl<'a, T1, T2, T3> ParserInfo for Command3<'a, T1, T2, T3>where T1: Input, T2: Input, T3: Input,
fn symbols(&mut self) -> Vec<&mut dyn Input>
fn call_handler(&mut self)
fn subcommand_docs(&self) -> Vec<DocInfo>
fn docs(&self) -> &DocInfo
fn push_parent(&mut self, parents: &[String])
fn complete_subcommand( &mut self, sub_idx: usize, tokens: &[String] ) -> Result<(), ParseError>
fn parse_subcommand( &mut self, sub_idx: usize, tokens: &[String] ) -> Result<(), ParseError>
Auto Trait Implementations§
impl<'a, T1, T2, T3> !RefUnwindSafe for Command3<'a, T1, T2, T3>
impl<'a, T1, T2, T3> !Send for Command3<'a, T1, T2, T3>
impl<'a, T1, T2, T3> !Sync for Command3<'a, T1, T2, T3>
impl<'a, T1, T2, T3> Unpin for Command3<'a, T1, T2, T3>where T1: Unpin, T2: Unpin, T3: Unpin,
impl<'a, T1, T2, T3> !UnwindSafe for Command3<'a, T1, T2, T3>
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