Struct OsStringValueParser

#[non_exhaustive]
pub struct OsStringValueParser {}

Implementation for ValueParser::os_string

Useful for composing new TypedValueParsers

Implementations

impl OsStringValueParser

fn new() -> Self

Implementation for ValueParser::os_string

Trait Implementations

impl Clone for OsStringValueParser

fn clone(&self) -> OsStringValueParser

impl Copy for OsStringValueParser

impl Debug for OsStringValueParser

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for OsStringValueParser

fn default() -> Self

impl TypedValueParser for OsStringValueParser

type Value = OsString;
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 OsStringValueParser

impl RefUnwindSafe for OsStringValueParser

impl Send for OsStringValueParser

impl Sync for OsStringValueParser

impl Unpin for OsStringValueParser

impl UnsafeUnpin for OsStringValueParser

impl UnwindSafe for OsStringValueParser

Blanket Implementations

impl<I> IntoResettable<ValueParser> for OsStringValueParser where I: Into<ValueParser>,

fn into_resettable(self) -> Resettable<ValueParser>

impl<T> Any for OsStringValueParser where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for OsStringValueParser where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for OsStringValueParser where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for OsStringValueParser where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for OsStringValueParser

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for OsStringValueParser where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for OsStringValueParser where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for OsStringValueParser 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 OsStringValueParser where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>