pub struct Params { /* private fields */ }Expand description
Parameters used during parsing.
Implementations§
Source§impl Params
impl Params
Sourcepub fn expression_recursion_limit(self, limit: u8) -> Self
pub fn expression_recursion_limit(self, limit: u8) -> Self
Maximum recursion depth allowed when parsing an expression.
This is a defensive limit to prevent the parsing of the rule to trigger a stack overflow.
The default value used for this limit should only be reached in rules written to try to trigger a stack overflow. However, should this limit be too low for real rules, it can be raised.
Default value is 50.
Sourcepub fn string_recursion_limit(self, limit: u8) -> Self
pub fn string_recursion_limit(self, limit: u8) -> Self
Maximum recursion depth allowed when parsing a regex or a hex-string.
This is a defensive limit to prevent the parsing of the rule to trigger a stack overflow.
The default value used for this limit should only be reached in rules written to try to trigger a stack overflow. However, should this limit be too low for real rules, it can be raised.
Default value is 30.
Trait Implementations§
impl Copy for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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