pub struct InnerCtx<'a> { /* private fields */ }Implementations§
Source§impl<'a> InnerCtx<'a>
impl<'a> InnerCtx<'a>
pub fn with_uid(self, uid: Uid) -> Self
pub fn with_idx(self, index: usize) -> Self
pub fn with_total(self, total: usize) -> Self
pub fn with_name(self, name: Option<Cow<'a, str>>) -> Self
pub fn with_style(self, style: Style) -> Self
pub fn with_arg(self, arg: Option<Cow<'a, OsStr>>) -> Self
Sourcepub fn name(&self) -> Option<&Cow<'a, str>>
pub fn name(&self) -> Option<&Cow<'a, str>>
The name of matched option.
For option it is the option name, for NOA it is the argument,
which set in invoke.
pub fn set_uid(&mut self, uid: Uid) -> &mut Self
pub fn set_name(&mut self, name: Option<Cow<'a, str>>) -> &mut Self
pub fn set_style(&mut self, style: Style) -> &mut Self
pub fn set_arg(&mut self, arg: Option<Cow<'a, OsStr>>) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InnerCtx<'a>
impl<'a> RefUnwindSafe for InnerCtx<'a>
impl<'a> Send for InnerCtx<'a>
impl<'a> Sync for InnerCtx<'a>
impl<'a> Unpin for InnerCtx<'a>
impl<'a> UnsafeUnpin for InnerCtx<'a>
impl<'a> UnwindSafe for InnerCtx<'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