Enum cmdopts::OptValSpec
source · pub enum OptValSpec {
Standalone,
StandaloneEqu,
Group,
}
Expand description
The enumeration specifies how a value has been provided for an option.
Variants§
Standalone
Value provided as separate token for an option (long and short) or standalone value without associated option.
StandaloneEqu
Value provided after ‘=’ for long option.
Group
Short option value provided as a tail of option(s) in a group (the group may consist of a single option only).
Trait Implementations§
source§impl Clone for OptValSpec
impl Clone for OptValSpec
source§fn clone(&self) -> OptValSpec
fn clone(&self) -> OptValSpec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OptValSpec
impl Debug for OptValSpec
source§impl PartialEq<OptValSpec> for OptValSpec
impl PartialEq<OptValSpec> for OptValSpec
source§fn eq(&self, other: &OptValSpec) -> bool
fn eq(&self, other: &OptValSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OptValSpec
impl StructuralPartialEq for OptValSpec
Auto Trait Implementations§
impl RefUnwindSafe for OptValSpec
impl Send for OptValSpec
impl Sync for OptValSpec
impl Unpin for OptValSpec
impl UnwindSafe for OptValSpec
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