Struct regex_syntax::ast::parse::NestLimiter[][src]

struct NestLimiter<'p, 's: 'p, P: 'p + 's> {
    p: &'p ParserI<'s, P>,
    depth: u32,
}

A type that traverses a fully parsed Ast and checks whether its depth exceeds the specified nesting limit. If it does, then an error is returned.

Fields

The parser that is checking the nest limit.

The current depth while walking an Ast.

Methods

impl<'p, 's, P: Borrow<Parser>> NestLimiter<'p, 's, P>
[src]

Trait Implementations

impl<'p, 's: 'p, P: Debug + 'p + 's> Debug for NestLimiter<'p, 's, P>
[src]

Formats the value using the given formatter. Read more

impl<'p, 's, P: Borrow<Parser>> Visitor for NestLimiter<'p, 's, P>
[src]

The result of visiting an AST.

An error that visiting an AST might return.

All implementors of Visitor must provide a finish method, which yields the result of visiting the AST or an error. Read more

This method is called on an Ast before descending into child Ast nodes. Read more

This method is called on an Ast after descending all of its child Ast nodes. Read more

This method is called on every ClassSetItem before descending into child nodes. Read more

This method is called on every ClassSetItem after descending into child nodes. Read more

This method is called on every ClassSetBinaryOp before descending into child nodes. Read more

This method is called on every ClassSetBinaryOp after descending into child nodes. Read more

This method is called before beginning traversal of the AST.

This method is called between child nodes of an Alternation. Read more

This method is called between the left hand and right hand child nodes of a ClassSetBinaryOp. Read more

Auto Trait Implementations

impl<'p, 's, P> Send for NestLimiter<'p, 's, P> where
    P: Sync

impl<'p, 's, P> Sync for NestLimiter<'p, 's, P> where
    P: Sync