Struct clio::clapers::OsStrParser
source · pub struct OsStrParser<T> { /* private fields */ }
Implementations§
source§impl<T> OsStrParser<T>
impl<T> OsStrParser<T>
sourcepub fn atomic(self) -> Self
pub fn atomic(self) -> Self
Make writing atomic, by writing to a temp file then doing an atomic swap
sourcepub fn default_name(self, name: &'static str) -> Self
pub fn default_name(self, name: &'static str) -> Self
The default name to use for the file if the path is a directory
Trait Implementations§
source§impl<T: Clone> Clone for OsStrParser<T>
impl<T: Clone> Clone for OsStrParser<T>
source§fn clone(&self) -> OsStrParser<T>
fn clone(&self) -> OsStrParser<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for OsStrParser<T>
impl<T: Debug> Debug for OsStrParser<T>
source§impl TypedValueParser for OsStrParser<ClioPath>
impl TypedValueParser for OsStrParser<ClioPath>
source§fn 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
§fn 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
§fn possible_values(
&self
) -> Option<Box<dyn Iterator<Item = PossibleValue> + '_>>
fn possible_values( &self ) -> Option<Box<dyn Iterator<Item = PossibleValue> + '_>>
Reflect on enumerated value properties Read more
source§impl<T> TypedValueParser for OsStrParser<T>
impl<T> TypedValueParser for OsStrParser<T>
source§fn 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
§fn 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
§fn possible_values(
&self
) -> Option<Box<dyn Iterator<Item = PossibleValue> + '_>>
fn possible_values( &self ) -> Option<Box<dyn Iterator<Item = PossibleValue> + '_>>
Reflect on enumerated value properties Read more
impl<T: Copy> Copy for OsStrParser<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OsStrParser<T>where
T: RefUnwindSafe,
impl<T> Send for OsStrParser<T>where
T: Send,
impl<T> Sync for OsStrParser<T>where
T: Sync,
impl<T> Unpin for OsStrParser<T>where
T: Unpin,
impl<T> UnwindSafe for OsStrParser<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<I> IntoResettable<ValueParser> for Iwhere
I: Into<ValueParser>,
impl<I> IntoResettable<ValueParser> for Iwhere
I: Into<ValueParser>,
§fn into_resettable(self) -> Resettable<ValueParser>
fn into_resettable(self) -> Resettable<ValueParser>
Convert to the intended resettable type