Enum ValueSource
#[non_exhaustive]
pub 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
Trait Implementations
impl Clone for ValueSource
fn clone(&self) -> ValueSource
impl Copy for ValueSource
impl Debug for ValueSource
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ValueSource
impl Ord for ValueSource
fn cmp(&self, other: &ValueSource) -> Ordering
impl PartialEq for ValueSource
fn eq(&self, other: &ValueSource) -> bool
impl PartialOrd for ValueSource
fn partial_cmp(&self, other: &ValueSource) -> Option<Ordering>
impl StructuralPartialEq for ValueSource
Auto Trait Implementations
impl Freeze for ValueSource
impl RefUnwindSafe for ValueSource
impl Send for ValueSource
impl Sync for ValueSource
impl Unpin for ValueSource
impl UnsafeUnpin for ValueSource
impl UnwindSafe for ValueSource
Blanket Implementations
impl<T> Any for ValueSource
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ValueSource
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ValueSource
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ValueSource
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ValueSource
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ValueSource
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ValueSource
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ValueSource
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ValueSource
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>