pub struct GrokSet { /* private fields */ }Expand description
A convenience wrapper over regex::RegexSet::matches and Grokker variants.
GrokSet provides methods to check if a string matches certain predefined
data patterns (groks).
Implementations§
Source§impl GrokSet
impl GrokSet
Sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Checks if any of the matched Grokker types are numeric (integers or floats).
§Returns
true if the GrokSet contains any numeric Grokker type, false otherwise.
Sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Checks if any of the matched Grokker types are integers (base-10 or base-16).
§Returns
true if the GrokSet contains any integer Grokker type, false otherwise.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GrokSet
impl RefUnwindSafe for GrokSet
impl Send for GrokSet
impl Sync for GrokSet
impl Unpin for GrokSet
impl UnsafeUnpin for GrokSet
impl UnwindSafe for GrokSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more