Struct NonEmptyStringValueParser
struct NonEmptyStringValueParser { ... }
Parse non-empty string values
See also:
Example
Usage:
# use clap_builder as clap;
let mut cmd = new
.arg;
let m = cmd.try_get_matches_from_mut.unwrap;
let port: &String = m.get_one
.expect;
assert_eq!;
Semantics:
# use clap_builder as clap;
# use OsStr;
# use TypedValueParser;
# let cmd = new;
# let arg = None;
let value_parser = new;
assert_eq!;
assert!;
Implementations
impl NonEmptyStringValueParser
fn new() -> SelfParse non-empty string values
impl Clone for NonEmptyStringValueParser
fn clone(self: &Self) -> NonEmptyStringValueParser
impl Copy for NonEmptyStringValueParser
impl Debug for NonEmptyStringValueParser
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Default for NonEmptyStringValueParser
fn default() -> Self
impl Freeze for NonEmptyStringValueParser
impl RefUnwindSafe for NonEmptyStringValueParser
impl Send for NonEmptyStringValueParser
impl Sync for NonEmptyStringValueParser
impl TypedValueParser for NonEmptyStringValueParser
fn parse_ref(self: &Self, cmd: &Command, arg: Option<&Arg>, value: &OsStr) -> Result<<Self as >::Value, Error>
impl Unpin for NonEmptyStringValueParser
impl UnsafeUnpin for NonEmptyStringValueParser
impl UnwindSafe for NonEmptyStringValueParser
impl<I> IntoResettable for NonEmptyStringValueParser
fn into_resettable(self: Self) -> Resettable<ValueParser>
impl<T> Any for NonEmptyStringValueParser
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for NonEmptyStringValueParser
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for NonEmptyStringValueParser
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for NonEmptyStringValueParser
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for NonEmptyStringValueParser
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for NonEmptyStringValueParser
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for NonEmptyStringValueParser
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for NonEmptyStringValueParser
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for NonEmptyStringValueParser
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>