set_max_level

Macro set_max_level 

Source
macro_rules! set_max_level {
    ($level:expr) => { ... };
    ($tag:ident, $level:expr) => { ... };
}
Expand description

Sets the maximum nesting level for tracing.

When the nesting level exceeds this value, the parser will panic. This is useful for detecting infinite recursion or excessively deep parser nesting.

ยงUsage

  • set_max_level!(level): Sets the max level for the default tag.
  • set_max_level!(tag, level): Sets the max level for a specific tag.

The level parameter should be an Option<usize>. Use None to remove the limit.