pub struct ShortFlag {
pub letter: char,
pub plus: bool,
pub offset: usize,
}Expand description
One letter of -abc.
Fields§
§letter: charThe letter.
plus: boolSpelled +c rather than -c (arg_plus); fits in padding, so Arg
does not grow.
offset: usizeWhere the letter is.
Trait Implementations§
impl Copy for ShortFlag
impl Eq for ShortFlag
impl StructuralPartialEq for ShortFlag
Auto Trait Implementations§
impl Freeze for ShortFlag
impl RefUnwindSafe for ShortFlag
impl Send for ShortFlag
impl Sync for ShortFlag
impl Unpin for ShortFlag
impl UnsafeUnpin for ShortFlag
impl UnwindSafe for ShortFlag
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