pub struct RootCtx<'a> {
pub command: Command,
pub matches: ArgMatches,
pub to_complete: &'a str,
pub prev_arg: &'a str,
}
Expand description
Context for the current CLI invocation.
Fields§
§command: Command
The command being completed
matches: ArgMatches
The current set of matches
to_complete: &'a str
The current word being completed
prev_arg: &'a str
The previous argument (useful when completing flag values)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RootCtx<'a>
impl<'a> !RefUnwindSafe for RootCtx<'a>
impl<'a> Send for RootCtx<'a>
impl<'a> Sync for RootCtx<'a>
impl<'a> Unpin for RootCtx<'a>
impl<'a> !UnwindSafe for RootCtx<'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