pub enum OptName {
Short(char),
Long(String),
Both(char, String),
Parameter(String),
}Expand description
The name of an option or parameter.
This describes an option as it is shown in the help message or error messages.
Variants§
Short(char)
A short option.
Long(String)
A long option.
Both(char, String)
Both, a short and a long option.
Parameter(String)
A parameter.
Trait Implementations§
impl Eq for OptName
impl StructuralPartialEq for OptName
Auto Trait Implementations§
impl Freeze for OptName
impl RefUnwindSafe for OptName
impl Send for OptName
impl Sync for OptName
impl Unpin for OptName
impl UnwindSafe for OptName
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