Enum clap::error::ContextValue [−][src]
#[non_exhaustive]
pub enum ContextValue {
None,
Bool(bool),
String(String),
Strings(Vec<String>),
Number(isize),
}
Expand description
A piece of error information
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
ContextKind
is self-sufficient, no additional information needed
Bool(bool)
Tuple Fields
0: bool
A single value
String(String)
Tuple Fields
0: String
A single value
Strings(Vec<String>)
Many values
Number(isize)
Tuple Fields
0: isize
A single value
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContextValue
impl Send for ContextValue
impl Sync for ContextValue
impl Unpin for ContextValue
impl UnwindSafe for ContextValue
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.