[][src]Struct bitap::Match

pub struct Match {
    pub distance: usize,
    pub end: usize,
}

Match represents a single match of a pattern within a string.

Fields

distance: usize

The edit distance for this match. Zero means it was an exact match, one means a single edit, etc.

end: usize

The index that this match ends on. Determining start position isn't possible (unless distance is zero), so this is all you have access to.

Trait Implementations

impl Clone for Match[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Match[src]

impl Copy for Match[src]

impl PartialEq<Match> for Match[src]

impl Debug for Match[src]

Auto Trait Implementations

impl Sync for Match

impl Unpin for Match

impl Send for Match

impl RefUnwindSafe for Match

impl UnwindSafe for Match

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]