pub trait Accessor<'a> {
    // Required methods
    fn access<A, B>(&self, ast: &A) -> Option<&'a B>
       where A: Identifiable + 'static,
             NodeId<A>: Into<ASTFamily>,
             &'a B: TryFrom<RLTFamily<'a>> + 'a;
    fn access_unknown<A>(&self, ast: &A) -> Option<RLTFamily<'_>>
       where A: Identifiable + 'static,
             NodeId<A>: Into<ASTFamily>;
    fn tree(&self) -> Rc<SyntaxTree>;
}

Required Methods§

source

fn access<A, B>(&self, ast: &A) -> Option<&'a B>
where A: Identifiable + 'static, NodeId<A>: Into<ASTFamily>, &'a B: TryFrom<RLTFamily<'a>> + 'a,

source

fn access_unknown<A>(&self, ast: &A) -> Option<RLTFamily<'_>>
where A: Identifiable + 'static, NodeId<A>: Into<ASTFamily>,

source

fn tree(&self) -> Rc<SyntaxTree>

Object Safety§

This trait is not object safe.

Implementors§