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
first_pos: usize
Start of the string in the first piece of data.
second_pos: usize
Start of the string in the second piece of data.
length: usize
Length of the string.
Methods
impl Match[src]
fn new(first_pos: usize, second_pos: usize, length: usize) -> Match
Allocate a new Match.
fn first_end(&self) -> usize
first_pos + length
fn second_end(&self) -> usize
second_pos + length
Trait Implementations
impl Clone for Match[src]
fn clone(&self) -> Match
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