pub struct MultiPattern { /* private fields */ }Expand description
A list of patterns corresponding to the columns of a Nucleo instance.
Implementations§
Source§impl MultiPattern
impl MultiPattern
Sourcepub fn new(columns: usize) -> Self
pub fn new(columns: usize) -> Self
Creates a new multi-pattern with columns empty column patterns.
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.
Sourcepub fn column_pattern(&self, column: usize) -> &Pattern
pub fn column_pattern(&self, column: usize) -> &Pattern
Returns the pattern corresponding to the provided column.
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 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