Struct clap::builder::PathBufValueParser
source · [−]#[non_exhaustive]pub struct PathBufValueParser {}
Expand description
Implementation for ValueParser::path_buf
Useful for composing new TypedValueParser
s
Implementations
sourceimpl PathBufValueParser
impl PathBufValueParser
sourcepub fn new() -> Self
pub fn new() -> Self
Implementation for ValueParser::path_buf
Trait Implementations
sourceimpl Clone for PathBufValueParser
impl Clone for PathBufValueParser
sourcefn clone(&self) -> PathBufValueParser
fn clone(&self) -> PathBufValueParser
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PathBufValueParser
impl Debug for PathBufValueParser
sourceimpl Default for PathBufValueParser
impl Default for PathBufValueParser
sourceimpl TypedValueParser for PathBufValueParser
impl TypedValueParser for PathBufValueParser
sourcefn parse_ref(
&self,
cmd: &Command<'_>,
arg: Option<&Arg<'_>>,
value: &OsStr
) -> Result<Self::Value, Error>
fn parse_ref(
&self,
cmd: &Command<'_>,
arg: Option<&Arg<'_>>,
value: &OsStr
) -> Result<Self::Value, Error>
Parse the argument value Read more
sourcefn parse(
&self,
cmd: &Command<'_>,
arg: Option<&Arg<'_>>,
value: OsString
) -> Result<Self::Value, Error>
fn parse(
&self,
cmd: &Command<'_>,
arg: Option<&Arg<'_>>,
value: OsString
) -> Result<Self::Value, Error>
Parse the argument value Read more
sourcefn possible_values(
&self
) -> Option<Box<dyn Iterator<Item = PossibleValue<'static>>>>
fn possible_values(
&self
) -> Option<Box<dyn Iterator<Item = PossibleValue<'static>>>>
Reflect on enumerated value properties Read more
impl Copy for PathBufValueParser
Auto Trait Implementations
impl RefUnwindSafe for PathBufValueParser
impl Send for PathBufValueParser
impl Sync for PathBufValueParser
impl Unpin for PathBufValueParser
impl UnwindSafe for PathBufValueParser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more