Enum ValueSource
enum ValueSource
Origin of the argument's value
Variants
-
DefaultValue Value came [
Arg::default_value][crate::Arg::default_value]-
EnvVariable Value came [
Arg::env][crate::Arg::env]-
CommandLine Value was passed in on the command-line
Implementations
impl Clone for ValueSource
fn clone(self: &Self) -> ValueSource
impl Copy for ValueSource
impl Debug for ValueSource
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for ValueSource
impl Freeze for ValueSource
impl Ord for ValueSource
fn cmp(self: &Self, other: &ValueSource) -> Ordering
impl PartialEq for ValueSource
fn eq(self: &Self, other: &ValueSource) -> bool
impl PartialOrd for ValueSource
fn partial_cmp(self: &Self, other: &ValueSource) -> Option<Ordering>
impl RefUnwindSafe for ValueSource
impl Send for ValueSource
impl StructuralPartialEq for ValueSource
impl Sync for ValueSource
impl Unpin for ValueSource
impl UnsafeUnpin for ValueSource
impl UnwindSafe for ValueSource
impl<T> Any for ValueSource
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ValueSource
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ValueSource
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for ValueSource
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for ValueSource
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ValueSource
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for ValueSource
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ValueSource
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ValueSource
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>