pub struct Opt<'a, S> { /* private fields */ }
Expand description
Represents a command-line option with its name, state and consume behavior
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for Opt<'a, S>where
S: Freeze,
impl<'a, S> RefUnwindSafe for Opt<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Opt<'a, S>where
S: Send,
impl<'a, S> Sync for Opt<'a, S>where
S: Sync,
impl<'a, S> Unpin for Opt<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for Opt<'a, S>where
S: UnwindSafe,
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