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 the match was found in.

Offset in the haystack the match was found.

Stored offsets as specified in the pattern.

Methods

impl<'a> Match<'a>
[src]

Get the pointer to the location that was matched.

Get a pointer from the store array.

Trait Implementations

impl<'a> Clone for Match<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for Match<'a>
[src]

impl<'a> Debug for Match<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Match<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Eq for Match<'a>
[src]

impl<'a> Display for Match<'a>
[src]

Formats the value using the given formatter. Read more