[][src]Struct ieql::common::pattern::CompiledPattern

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).

Methods

impl CompiledPattern
[src]

pub fn quick_check(&self, other: &String) -> bool
[src]

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.

pub fn full_check(&self, other: &String) -> Option<PatternMatch>
[src]

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.

Trait Implementations

impl CompilableTo<CompiledPattern> for Pattern
[src]

fn compile(&self) -> Result<CompiledPattern, Issue>
[src]

This function compiles the Pattern into a CompiledPattern by escaping the RegEx expression as necessary and then compiling it.

impl Clone for CompiledPattern
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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.

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