pub enum ArgumentIdentification {
Short(char),
Long(String),
Both(char, String),
}
Expand description
Defines how arguments can be identified.
Variants§
Implementations§
source§impl ArgumentIdentification
impl ArgumentIdentification
pub fn is_by_short(&self, name: char) -> bool
pub fn is_by_long(&self, name: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ArgumentIdentification
impl Send for ArgumentIdentification
impl Sync for ArgumentIdentification
impl Unpin for ArgumentIdentification
impl UnwindSafe for ArgumentIdentification
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