pub enum Token {
Byte(u8),
NotByte(u8),
MaskedByte(u8, Mask),
NotMaskedByte(u8, Mask),
Jump(Jump),
Alternatives(Vec<Vec<Token>>),
}Expand description
A token in an hex string.
Variants§
Byte(u8)
A fully declared byte, eg 9C
NotByte(u8)
Negation of a byte, eg ~9C
MaskedByte(u8, Mask)
A masked byte, eg ?5, C?, ??
NotMaskedByte(u8, Mask)
Negation of a masked byte, eg ~?C. The mask cannot be Mask::All.
Jump(Jump)
A jump of unknown bytes, eg [5-10], [3-], …
Alternatives(Vec<Vec<Token>>)
Two possible list of tokens, eg ( 12 34 | 98 76 )
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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