pub struct FuzzyMatch {
pub byte_start: usize,
pub byte_len: usize,
pub pass: u8,
}Expand description
A match result: byte offset in source and the matched byte length.
Fields§
§byte_start: usize§byte_len: usize§pass: u8Which pass found the match (1=exact, 2=rstrip, 3=trim, 4=unicode)
Trait Implementations§
Source§impl Clone for FuzzyMatch
impl Clone for FuzzyMatch
Source§fn clone(&self) -> FuzzyMatch
fn clone(&self) -> FuzzyMatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FuzzyMatch
impl RefUnwindSafe for FuzzyMatch
impl Send for FuzzyMatch
impl Sync for FuzzyMatch
impl Unpin for FuzzyMatch
impl UnsafeUnpin for FuzzyMatch
impl UnwindSafe for FuzzyMatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more