Struct bcmp::Match [] [src]

pub struct Match {
    pub first_pos: usize,
    pub second_pos: usize,
    pub length: usize,
}

A structure representing a matching substring between two pieces of data.

Fields

Start of the string in the first piece of data.

Start of the string in the second piece of data.

Length of the string.

Methods

impl Match
[src]

Allocate a new Match.

first_pos + length

second_pos + length

Trait Implementations

impl Clone for Match
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Match
[src]

impl Debug for Match
[src]

Formats the value using the given formatter.

impl PartialEq for Match
[src]

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

This method tests for !=.

impl Eq for Match
[src]