pub struct Grok { /* private fields */ }
Expand description
The basic structure to manage patterns, entry point for common usage.
Implementations§
Source§impl Grok
impl Grok
Sourcepub fn with_patterns() -> Self
pub fn with_patterns() -> Self
Creates a new Grok
instance and loads all the default patterns.
Sourcepub fn insert_definition<S: Into<String>>(&mut self, name: S, pattern: S)
pub fn insert_definition<S: Into<String>>(&mut self, name: S, pattern: S)
Inserts a custom pattern.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Grok
impl RefUnwindSafe for Grok
impl Send for Grok
impl Sync for Grok
impl Unpin for Grok
impl UnwindSafe for Grok
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more