pub struct AnchorCheck {
pub anchors: ByteSet,
pub offsets: [u8; 5],
pub offset_count: u8,
pub bytes: ByteSet,
pub all: bool,
}Expand description
When the anchor byte at pos is one of anchors, the byte at one of
the offsets after pos (or at every offset, with all) must be one
of bytes (and exist) for pos to be the first anchor byte of a
match: an IPv4 address’s first . has another two to four bytes on, a
UUID’s first - others 5, 10 and 15 bytes on, a MAC address’s first
: others 3, 6, 9 and 12 bytes on.
Fields§
§anchors: ByteSet§offsets: [u8; 5]§offset_count: u8§bytes: ByteSet§all: boolEvery offset must hold one of bytes, not just one of them.
Implementations§
Trait Implementations§
Source§impl Clone for AnchorCheck
impl Clone for AnchorCheck
impl Copy for AnchorCheck
Source§impl Debug for AnchorCheck
impl Debug for AnchorCheck
impl Eq for AnchorCheck
Source§impl PartialEq for AnchorCheck
impl PartialEq for AnchorCheck
impl StructuralPartialEq for AnchorCheck
Auto Trait Implementations§
impl Freeze for AnchorCheck
impl RefUnwindSafe for AnchorCheck
impl Send for AnchorCheck
impl Sync for AnchorCheck
impl Unpin for AnchorCheck
impl UnsafeUnpin for AnchorCheck
impl UnwindSafe for AnchorCheck
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