Struct regex::exec::Exec[][src]

pub struct Exec {
    ro: Arc<ExecReadOnly>,
    cache: CachedThreadLocal<RefCell<ProgramCacheInner>>,
}

Exec manages the execution of a regular expression.

In particular, this manages the various compiled forms of a single regular expression and the choice of which matching engine to use to execute a regular expression.

Fields

All read only state.

Caches for the various matching engines.

Methods

impl Exec
[src]

Get a searcher that isn't Sync.

Get a searcher that isn't Sync and can match on &str.

Build a Regex from this executor.

Build a RegexSet from this executor.

Build a Regex from this executor that can match arbitrary bytes.

Build a RegexSet from this executor that can match arbitrary bytes.

The original regular expressions given by the caller that were compiled.

Return a slice of capture names.

Any capture that isn't named is None.

Return a reference to named groups mapping (from group name to group position).

Trait Implementations

impl Clone for Exec
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Exec> for Regex
[src]

A constructor for Regex from an Exec.

This is hidden because Exec isn't actually part of the public API.

Performs the conversion.

impl From<Exec> for RegexSet
[src]

Performs the conversion.

impl From<Exec> for RegexSet
[src]

Performs the conversion.

impl From<Exec> for Regex
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Exec

impl Sync for Exec