pub enum HelpRequest<'a> {
All,
Command(RawCommand<'a>),
}
Variants§
All
Show list of all available commands
Command(RawCommand<'a>)
Show help for specific command with arguments One of command arguments might be -h or –help
Implementations§
Source§impl<'a> HelpRequest<'a>
impl<'a> HelpRequest<'a>
Sourcepub fn from_command(command: &RawCommand<'a>) -> Option<Self>
pub fn from_command(command: &RawCommand<'a>) -> Option<Self>
Tries to create new help request from raw command
Trait Implementations§
Source§impl<'a> Clone for HelpRequest<'a>
impl<'a> Clone for HelpRequest<'a>
Source§fn clone(&self) -> HelpRequest<'a>
fn clone(&self) -> HelpRequest<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for HelpRequest<'a>
impl<'a> Debug for HelpRequest<'a>
Source§impl<'a> PartialEq for HelpRequest<'a>
impl<'a> PartialEq for HelpRequest<'a>
impl<'a> Eq for HelpRequest<'a>
impl<'a> StructuralPartialEq for HelpRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for HelpRequest<'a>
impl<'a> RefUnwindSafe for HelpRequest<'a>
impl<'a> Send for HelpRequest<'a>
impl<'a> Sync for HelpRequest<'a>
impl<'a> Unpin for HelpRequest<'a>
impl<'a> UnwindSafe for HelpRequest<'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