Type Alias SparseDfaIter

Source
pub type SparseDfaIter<T> = DfaIter<DFA<T>>;
Expand description

A DfaIter using sparse::DFA representation

Aliased Type§

struct SparseDfaIter<T> { /* private fields */ }

Implementations§

Source§

impl SparseDfaIter<Vec<u8>>

Source

pub fn new(pattern: &str) -> Result<Self, BuildError>

Parse the given regular expression using a default configuration and return the corresponding sparse DfaIter.

If you want a non-default configuration, then use the dense::Builder to set your own configuration, and then call dense::DFA::to_sparse to create a sparse DFA.

See [DFA] for details

Source

pub fn new_many<P: AsRef<str>>(patterns: &[P]) -> Result<Self, BuildError>

Parse the given regular expressions using a default configuration and return the corresponding sparse multi-DfaIter.

If you want a non-default configuration, then use the dense::Builder to set your own configuration, and then call dense::DFA::to_sparse to create a sparse DFA.

See [DFA] for details