Skip to main content

AttachToAst

Trait AttachToAst 

Source
pub trait AttachToAst<'ast, T> {
    // Required method
    fn attach_to_ast(self, alloc: &'ast AstAlloc, ast: Ast<'ast>) -> T;
}
Expand description

Trait for structures representing annotations which can be combined with a term to build another term, or another structure holding a term, such as a field. T is the said target structure.

Required Methods§

Source

fn attach_to_ast(self, alloc: &'ast AstAlloc, ast: Ast<'ast>) -> T

Implementors§

Source§

impl<'ast> AttachToAst<'ast, Ast<'ast>> for Annotation<'ast>