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 Freeze for ArgumentIdentification
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