[][src]Struct grep_hyperscan::RegexMatcherBuilder

pub struct RegexMatcherBuilder {}

A builder for configuring the compilation of a hyperscan db.

Methods

impl RegexMatcherBuilder[src]

pub fn new() -> RegexMatcherBuilder[src]

Create a new matcher builder with a default configuration.

pub fn build(&self, patterns: &[String]) -> Result<RegexMatcher, Error>[src]

Compile the given pattern into an hyperscan db using the current configuration.

If there was a problem compiling the pattern, then an error is returned.

Trait Implementations

impl Clone for RegexMatcherBuilder[src]

impl Debug for RegexMatcherBuilder[src]

impl Default for RegexMatcherBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.