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