pub struct LongFlag<'i> {
pub name: &'i [u8],
pub value: Option<&'i BStr>,
pub offset: usize,
}Expand description
--name or --name=value.
Fields§
§name: &'i [u8]The text between -- and the first =, as bytes so it can be a pattern.
value: Option<&'i BStr>The text after the first =, if there was one.
offset: usizeWhere the flag starts.
Trait Implementations§
impl<'i> Copy for LongFlag<'i>
impl<'i> Eq for LongFlag<'i>
impl<'i> StructuralPartialEq for LongFlag<'i>
Auto Trait Implementations§
impl<'i> Freeze for LongFlag<'i>
impl<'i> RefUnwindSafe for LongFlag<'i>
impl<'i> Send for LongFlag<'i>
impl<'i> Sync for LongFlag<'i>
impl<'i> Unpin for LongFlag<'i>
impl<'i> UnsafeUnpin for LongFlag<'i>
impl<'i> UnwindSafe for LongFlag<'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