pub enum HexToken {
Byte(HexByte),
NotByte(HexByte),
Alternative(Box<HexAlternative>),
Jump(HexJump),
}
Expand description
Each of the types of tokens in a hex pattern (a.k.a. hex string).
A token can be a single byte, a negated byte (e.g. ~XX
), an
alternative (e.g (XXXX|YYYY)
), or a jump (e.g [0-10]
).
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HexToken
impl RefUnwindSafe for HexToken
impl Send for HexToken
impl Sync for HexToken
impl Unpin for HexToken
impl UnwindSafe for HexToken
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more