Expand description
The pattern with basic regular expression.
Fields
expression: String
The expression to parse.
flags: Flags
Flags which modify the behaviour of the expression.
id: Option<usize>
ID number to be associated with the corresponding pattern in the expressions array.
Implementations
sourceimpl Pattern
impl Pattern
sourcepub fn with_flags<S: Into<String>>(expr: S, flags: Flags) -> Pattern
pub fn with_flags<S: Into<String>>(expr: S, flags: Flags) -> Pattern
Construct a pattern with expression and flags.
sourcepub fn multi_line(self) -> Self
pub fn multi_line(self) -> Self
Set multi-line anchoring.
sourcepub fn single_match(self) -> Self
pub fn single_match(self) -> Self
Set single-match only mode.
Trait Implementations
sourceimpl Builder for Pattern
impl Builder for Pattern
sourcefn for_platform(
&self,
mode: Mode,
match_limit: Option<MatchLimit>,
platform: Option<&PlatformRef>
) -> Result<Database, Self::Err>
fn for_platform(
&self,
mode: Mode,
match_limit: Option<MatchLimit>,
platform: Option<&PlatformRef>
) -> Result<Database, Self::Err>
The basic regular expression compiler.
This is the function call with which an expression is compiled into a Chimera database which can be passed to the runtime function.
sourceimpl FromIterator<Pattern> for Patterns
impl FromIterator<Pattern> for Patterns
sourcefn from_iter<T: IntoIterator<Item = Pattern>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Pattern>>(iter: T) -> Self
Creates a value from an iterator. Read more
impl Eq for Pattern
impl StructuralEq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more