Trait ra_syntax::algo::visit::Visitor

source ·
pub trait Visitor<'a>: Sized {
    type Output;

    fn accept(self, node: SyntaxNodeRef<'a>) -> Option<Self::Output>;

    fn visit<N, F>(self, f: F) -> Vis<Self, N, F>
    where
        N: AstNode<'a>,
        F: FnOnce(N) -> Self::Output
, { ... } }

Required Associated Types

Required Methods

Provided Methods

Implementors