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