Enum ArgPredicate

enum ArgPredicate

Operations to perform on argument values

These do not apply to [ValueSource::DefaultValue][crate::parser::ValueSource::DefaultValue]

Variants

IsPresent

Is the argument present?

Equals(crate::builder::OsStr)

Does the argument match the specified value?

Implementations

impl Clone for ArgPredicate

fn clone(self: &Self) -> ArgPredicate

impl Debug for ArgPredicate

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for ArgPredicate

impl Freeze for ArgPredicate

impl PartialEq for ArgPredicate

fn eq(self: &Self, other: &ArgPredicate) -> bool

impl RefUnwindSafe for ArgPredicate

impl Send for ArgPredicate

impl StructuralPartialEq for ArgPredicate

impl Sync for ArgPredicate

impl Unpin for ArgPredicate

impl UnsafeUnpin for ArgPredicate

impl UnwindSafe for ArgPredicate

impl<S: Into<crate::builder::OsStr>> From for ArgPredicate

fn from(other: S) -> Self

impl<T> Any for ArgPredicate

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ArgPredicate

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ArgPredicate

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for ArgPredicate

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for ArgPredicate

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for ArgPredicate

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for ArgPredicate

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ArgPredicate

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ArgPredicate

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>