[][src]Struct antlr_rust::tree::ParseTreeWalker

pub struct ParseTreeWalker<'input, 'a, Node, T: ?Sized = dyn ParseTreeListener<'input, Node> + 'a>(_)
where
    Node: ParserNodeType<'input>,
    T: ParseTreeListener<'input, Node>
;

Helper struct to accept parse listener on already generated tree

Implementations

impl<'input, 'a, Node, T: ?Sized> ParseTreeWalker<'input, 'a, Node, T> where
    Node: ParserNodeType<'input>,
    T: ParseTreeListener<'input, Node> + 'a,
    Node::Type: Listenable<T>, 
[src]

pub fn walk<Listener, Ctx>(listener: Box<Listener>, t: &Ctx) -> Box<Listener> where
    &'x mut Listener: CoerceUnsized<&'x mut T>,
    &'x Ctx: CoerceUnsized<&'x Node::Type>, 
[src]

Walks recursively over tree t with listener

Trait Implementations

impl<'input, 'a, Node: Debug, T: Debug + ?Sized> Debug for ParseTreeWalker<'input, 'a, Node, T> where
    Node: ParserNodeType<'input>,
    T: ParseTreeListener<'input, Node>,
    Node::Type: Debug
[src]

Auto Trait Implementations

impl<'input, 'a, Node, T: ?Sized> RefUnwindSafe for ParseTreeWalker<'input, 'a, Node, T>[src]

impl<'input, 'a, Node, T: ?Sized> Send for ParseTreeWalker<'input, 'a, Node, T>[src]

impl<'input, 'a, Node, T: ?Sized> Sync for ParseTreeWalker<'input, 'a, Node, T>[src]

impl<'input, 'a, Node, T: ?Sized> Unpin for ParseTreeWalker<'input, 'a, Node, T>[src]

impl<'input, 'a, Node, T: ?Sized> UnwindSafe for ParseTreeWalker<'input, 'a, Node, T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> NodeText for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.