pub struct GRLParser;Expand description
GRL Parser - No Regex Version
Parses Grule-like syntax into Rule objects without using regex. This is the recommended parser for new code - it’s faster and has fewer dependencies.
Implementations§
Source§impl GRLParserNoRegex
impl GRLParserNoRegex
Sourcepub fn parse_rules(grl_text: &str) -> Result<Vec<Rule>, RuleEngineError>
pub fn parse_rules(grl_text: &str) -> Result<Vec<Rule>, RuleEngineError>
Parse multiple rules from GRL text
Sourcepub fn parse_rule(grl_text: &str) -> Result<Rule, RuleEngineError>
pub fn parse_rule(grl_text: &str) -> Result<Rule, RuleEngineError>
Parse a single rule from GRL syntax
Sourcepub fn parse_with_modules(grl_text: &str) -> Result<ParsedGRL, RuleEngineError>
pub fn parse_with_modules(grl_text: &str) -> Result<ParsedGRL, RuleEngineError>
Parse GRL text with module support
Auto Trait Implementations§
impl Freeze for GRLParserNoRegex
impl RefUnwindSafe for GRLParserNoRegex
impl Send for GRLParserNoRegex
impl Sync for GRLParserNoRegex
impl Unpin for GRLParserNoRegex
impl UnwindSafe for GRLParserNoRegex
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> 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