Struct StringValueParser
#[non_exhaustive]
pub struct StringValueParser {}
Implementation for ValueParser::string
Useful for composing new TypedValueParsers
Implementations
impl StringValueParser
fn new() -> SelfImplementation for
ValueParser::string
Trait Implementations
impl Clone for StringValueParser
fn clone(&self) -> StringValueParser
impl Copy for StringValueParser
impl Debug for StringValueParser
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for StringValueParser
fn default() -> Self
impl TypedValueParser for StringValueParser
type Value = String;fn parse_ref(&self, cmd: &Command, arg: Option<&Arg>, value: &OsStr) -> Result<Self::Value, Error>fn parse(&self, cmd: &Command, _arg: Option<&Arg>, value: OsString) -> Result<Self::Value, Error>
Auto Trait Implementations
impl Freeze for StringValueParser
impl RefUnwindSafe for StringValueParser
impl Send for StringValueParser
impl Sync for StringValueParser
impl Unpin for StringValueParser
impl UnsafeUnpin for StringValueParser
impl UnwindSafe for StringValueParser
Blanket Implementations
impl<I> IntoResettable<ValueParser> for StringValueParser
where
I: Into<ValueParser>,
fn into_resettable(self) -> Resettable<ValueParser>
impl<T> Any for StringValueParser
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for StringValueParser
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for StringValueParser
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for StringValueParser
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for StringValueParser
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for StringValueParser
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for StringValueParser
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 StringValueParser
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 StringValueParser
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>