Struct TryMapValueParser
struct TryMapValueParser<P, F> { ... }
Adapt a TypedValueParser from one value to another
Implementations
impl<I> IntoResettable for TryMapValueParser<P, F>
fn into_resettable(self: Self) -> Resettable<ValueParser>
impl<P, F> Freeze for TryMapValueParser<P, F>
impl<P, F> RefUnwindSafe for TryMapValueParser<P, F>
impl<P, F> Send for TryMapValueParser<P, F>
impl<P, F> Sync for TryMapValueParser<P, F>
impl<P, F> Unpin for TryMapValueParser<P, F>
impl<P, F> UnsafeUnpin for TryMapValueParser<P, F>
impl<P, F> UnwindSafe for TryMapValueParser<P, F>
impl<P, F, T, E> TypedValueParser for TryMapValueParser<P, F>
fn parse_ref(self: &Self, cmd: &Command, arg: Option<&Arg>, value: &OsStr) -> Result<<Self as >::Value, Error>fn possible_values(self: &Self) -> Option<Box<dyn Iterator<Item = PossibleValue> + '_>>
impl<P: $crate::clone::Clone, F: $crate::clone::Clone> Clone for TryMapValueParser<P, F>
fn clone(self: &Self) -> TryMapValueParser<P, F>
impl<P: $crate::fmt::Debug, F: $crate::fmt::Debug> Debug for TryMapValueParser<P, F>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<T> Any for TryMapValueParser<P, F>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for TryMapValueParser<P, F>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for TryMapValueParser<P, F>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for TryMapValueParser<P, F>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for TryMapValueParser<P, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for TryMapValueParser<P, F>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for TryMapValueParser<P, F>
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 TryMapValueParser<P, F>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for TryMapValueParser<P, F>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>