Struct scanner::Match
[−]
[src]
pub struct Match<'a> { pub haystack: &'a [u8], pub at: u32, pub store: [u32; 5], }
Represents a pattern match.
Fields
haystack: &'a [u8]
Haystack the match was found in.
at: u32
Offset in the haystack the match was found.
store: [u32; 5]
Stored offsets as specified in the pattern.
Methods
impl<'a> Match<'a>
[src]
fn ptr(&self) -> *const u8
Get the pointer to the location that was matched.
fn get<T>(&self, idx: usize) -> *const T
Get a pointer from the store array.
Trait Implementations
impl<'a> Clone for Match<'a>
[src]
fn clone(&self) -> Match<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> Copy for Match<'a>
[src]
impl<'a> Debug for Match<'a>
[src]
impl<'a> PartialEq for Match<'a>
[src]
fn eq(&self, __arg_0: &Match<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Match<'a>) -> bool
This method tests for !=
.