pub struct Context<'a> {
pub args: &'a [OsString],
pub curr: Cow<'a, OsStr>,
pub prev: Cow<'a, OsStr>,
pub cword: usize,
}Fields§
§args: &'a [OsString]§curr: Cow<'a, OsStr>Current argument passed by shell
prev: Cow<'a, OsStr>Previous argument passed by shell
cword: usizeIndex of current word
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnwindSafe for Context<'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