[][src]Struct grok::Grok

pub struct Grok { /* fields omitted */ }

The basic structure to manage patterns, entry point for common usage.

Methods

impl Grok[src]

pub fn empty() -> Self[src]

Creates a new Grok instance with no patterns.

pub fn with_patterns() -> Self[src]

Creates a new Grok instance and loads all the default patterns.

pub fn insert_definition<S: Into<String>>(&mut self, name: S, pattern: S)[src]

Inserts a custom pattern.

pub fn compile(
    &mut self,
    pattern: &str,
    with_alias_only: bool
) -> Result<Pattern, Error>
[src]

Compiles the given pattern, making it ready for matching.

Trait Implementations

impl Default for Grok[src]

impl Debug for Grok[src]

Auto Trait Implementations

impl Send for Grok

impl Sync for Grok

impl Unpin for Grok

impl UnwindSafe for Grok

impl RefUnwindSafe for Grok

Blanket Implementations

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

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

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.

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

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

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