pub enum OptName {
Name(&'static str),
Prefix(&'static str),
}Variants§
Name(&'static str)
A named option. Note that the str here uses _ instead of - because
it’s derived from Rust syntax.
Prefix(&'static str)
A prefixed option which strips the specified name, then -.
Auto Trait Implementations§
impl Freeze for OptName
impl RefUnwindSafe for OptName
impl Send for OptName
impl Sync for OptName
impl Unpin for OptName
impl UnsafeUnpin 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