Enum clap::builder::ArgPredicate
source · [−]pub enum ArgPredicate {
IsPresent,
Equals(OsStr),
}
Expand description
Operations to perform on argument values
These do not apply to ValueSource::DefaultValue
Variants
IsPresent
Is the argument present?
Equals(OsStr)
Does the argument match the specified value?
Trait Implementations
sourceimpl Clone for ArgPredicate
impl Clone for ArgPredicate
sourcefn clone(&self) -> ArgPredicate
fn clone(&self) -> ArgPredicate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArgPredicate
impl Debug for ArgPredicate
sourceimpl<S: Into<OsStr>> From<S> for ArgPredicate
impl<S: Into<OsStr>> From<S> for ArgPredicate
sourceimpl PartialEq<ArgPredicate> for ArgPredicate
impl PartialEq<ArgPredicate> for ArgPredicate
sourcefn eq(&self, other: &ArgPredicate) -> bool
fn eq(&self, other: &ArgPredicate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArgPredicate) -> bool
fn ne(&self, other: &ArgPredicate) -> bool
This method tests for !=
.
impl Eq for ArgPredicate
impl StructuralEq for ArgPredicate
impl StructuralPartialEq for ArgPredicate
Auto Trait Implementations
impl RefUnwindSafe for ArgPredicate
impl Send for ArgPredicate
impl Sync for ArgPredicate
impl Unpin for ArgPredicate
impl UnwindSafe for ArgPredicate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more