pub struct Match {
pub distance: usize,
pub end: usize,
}
Expand description
Match represents a single match of a pattern in some text.
Fields§
§distance: usize
The edit distance for this match.
end: usize
The index of the character (not necessarily byte) that ends this match. Determining start position isn’t possible (unless max_distance is zero), so this is all I’m returning.
Trait Implementations§
impl Copy for Match
impl Eq for Match
impl StructuralPartialEq for Match
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnwindSafe for Match
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more