pub struct CompiledPattern { /* fields omitted */ }
A CompiledPattern
is a Pattern
whose RegEx has been compiled or,
in the case that the PatternType
is raw, whose expression has been
RegEx escaped and then compiled (as RegEx).
This function performs a 'quick check' for matching on the given string.
It simply returns a boolean value representing whether the string matches
the pattern or not. This function is more performant, but less featureful,
than full_check
.
This function performs a 'full check' on the given text; more specifically,
it determines whether the pattern matches the given text and then, if so,
assembles a PatternMatch
.
Returns Some(PatternMatch)
if there is a match. Otherwise, the function
returns None
.
This function compiles the Pattern
into a CompiledPattern
by
escaping the RegEx expression as necessary and then compiling it.
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static