Skip to main content

NodeVisitor

Trait NodeVisitor 

Source
pub trait NodeVisitor: NodeVisitorSuper<Self::Error> {
    type Error;

    // Required method
    fn visit_node(
        &mut self,
        id: CstNodeId,
        node: CstNode,
        tree: &Cst,
    ) -> Result<(), Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn visit_node( &mut self, id: CstNodeId, node: CstNode, tree: &Cst, ) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§