Trait kodept_ast::traits::Accessor
source · 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§
fn access<A, B>(&self, ast: &A) -> Option<&'a B>
fn access_unknown<A>(&self, ast: &A) -> Option<RLTFamily<'_>>
fn tree(&self) -> Rc<SyntaxTree>
Object Safety§
This trait is not object safe.