pub(crate) enum Name {
Long(String),
Short(char),
}
Expand description
Name of an option. Either a string or a single char.
Variants§
Long(String)
A string representing the long name of an option. For example: “help”
Short(char)
A char representing the short name of an option. For example: ‘h’
Implementations§
Trait Implementations§
source§impl PartialEq<Name> for Name
impl PartialEq<Name> for Name
impl StructuralEq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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