pub struct MultiPattern { /* private fields */ }Implementations§
Source§impl MultiPattern
impl MultiPattern
Sourcepub fn reparse(
&mut self,
column: usize,
new_text: &str,
case_matching: CaseMatching,
normalization: Normalization,
append: bool,
)
pub fn reparse( &mut self, column: usize, new_text: &str, case_matching: CaseMatching, normalization: Normalization, append: bool, )
Reparses a column. By specifying append the caller promises that text passed
to the previous reparse invocation is a prefix of new_text. This enables
additional optimizations but can lead to missing matches if an incorrect value
is passed.
pub fn column_pattern(&self, column: usize) -> &Pattern
pub fn score( &self, haystack: &[Utf32String], matcher: &mut Matcher, ) -> Option<u32>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for MultiPattern
impl Clone for MultiPattern
Auto Trait Implementations§
impl Freeze for MultiPattern
impl RefUnwindSafe for MultiPattern
impl Send for MultiPattern
impl Sync for MultiPattern
impl Unpin for MultiPattern
impl UnsafeUnpin for MultiPattern
impl UnwindSafe for MultiPattern
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