Expand description
Enum for middle result in parsing
Variants
Normal(String)
Variant shows a normal arg.
LongFlag(String, FlagValue)
Variant shows a long flag.
ShortFlag(String, FlagValue)
Variant shows a short flag.
Implementations
sourceimpl MiddleArg
impl MiddleArg
sourcepub fn val_if_string(&self) -> Option<&String>
pub fn val_if_string(&self) -> Option<&String>
Gets flag value storaged in &self if FlagValue::String
sourcepub fn inner_if_string_val(&self) -> Option<(&str, &str)>
pub fn inner_if_string_val(&self) -> Option<(&str, &str)>
Gets inner of Variant if string value.
sourcepub fn get_flag_type_str<'a>(&self) -> &'a str
pub fn get_flag_type_str<'a>(&self) -> &'a str
Gets the form of MiddleArg as str value.
Trait Implementations
sourceimpl PartialOrd<MiddleArg> for MiddleArg
impl PartialOrd<MiddleArg> for MiddleArg
sourcefn partial_cmp(&self, other: &MiddleArg) -> Option<Ordering>
fn partial_cmp(&self, other: &MiddleArg) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for MiddleArg
Auto Trait Implementations
impl RefUnwindSafe for MiddleArg
impl Send for MiddleArg
impl Sync for MiddleArg
impl Unpin for MiddleArg
impl UnwindSafe for MiddleArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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