pub struct Word<'i> {
pub value: &'i BStr,
pub offset: usize,
pub after_separator: bool,
}Expand description
A word that is not a flag.
Fields§
§value: &'i BStrThe word.
offset: usizeWhere it starts.
after_separator: boolWhether it came after --, where no word names a subcommand.
Implementations§
Trait Implementations§
impl<'i> Copy for Word<'i>
impl<'i> Eq for Word<'i>
impl<'i> StructuralPartialEq for Word<'i>
Auto Trait Implementations§
impl<'i> Freeze for Word<'i>
impl<'i> RefUnwindSafe for Word<'i>
impl<'i> Send for Word<'i>
impl<'i> Sync for Word<'i>
impl<'i> Unpin for Word<'i>
impl<'i> UnsafeUnpin for Word<'i>
impl<'i> UnwindSafe for Word<'i>
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