pub struct SubcommandDesc(/* private fields */);Expand description
Description of a built-in subcommand.
Returned by CommandDesc::subcommands.
Implementations§
Source§impl SubcommandDesc
impl SubcommandDesc
pub fn canonical_name(&self) -> &str
pub fn description(&self) -> Option<&str>
pub fn args(&self) -> &[ArgumentDesc]
pub fn subcommands(&self) -> &[SubcommandDesc]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubcommandDesc
impl RefUnwindSafe for SubcommandDesc
impl Send for SubcommandDesc
impl Sync for SubcommandDesc
impl Unpin for SubcommandDesc
impl UnwindSafe for SubcommandDesc
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