pub struct Opts { /* private fields */ }
Expand description
Represents all the options passed to a command.
Implementations§
Source§impl Opts
impl Opts
Sourcepub fn is_minus(&self, c: c_char) -> bool
pub fn is_minus(&self, c: c_char) -> bool
Whether the option was set using a minus. E.g:
command +o # Returns false
command -o # Returns true.
Sourcepub fn is_plus(&self, c: c_char) -> bool
pub fn is_plus(&self, c: c_char) -> bool
Whether the option was set using a plus. E.g:
command +o # Returns true
command -o # Returns false
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl !Send for Opts
impl !Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
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