pub struct Pattern { /* fields omitted */ }Represents a regular expression to be matched against a target.
Creates a Pattern.
This is only safe to use with Elements that are known prior to runtime.
Panics if element converts into a Rec with an invalid regular expression.
Attempts to create a Pattern.
This is intended to be used with Elements that are not known prior to runtime.
Returns regex::Error if attempt is unsuccesful.
Produces Tokens that match self with given target.
Produces an Iterator of Tokens that match self with given target.
After each Tokens is produced, the next one is searched from the target after the
current match.
Produces Location of the match.
If no match is found, returns None.
Produces Locations that match self with given target.
After each Location is produced, the next one is searched from the target after the
current match.
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
type Owned = T
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
type Error = !
🔬 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
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
type Error = <U as TryFrom<T>>::Error
🔬 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)
Mutably borrows from an owned value. Read more