pub struct CommandContext<'a> {
pub args: &'a [String],
pub binary_name: &'a str,
}Expand description
Borrowed arguments for a single console invocation.
Fields§
§args: &'a [String]Remaining argv after the binary name and command name.
binary_name: &'a strApplication binary name used in help text.
Trait Implementations§
Source§impl<'a> Clone for CommandContext<'a>
impl<'a> Clone for CommandContext<'a>
impl<'a> Copy for CommandContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandContext<'a>
impl<'a> RefUnwindSafe for CommandContext<'a>
impl<'a> Send for CommandContext<'a>
impl<'a> Sync for CommandContext<'a>
impl<'a> Unpin for CommandContext<'a>
impl<'a> UnsafeUnpin for CommandContext<'a>
impl<'a> UnwindSafe for CommandContext<'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