Trait kodept_ast::traits::Linker

source ·
pub trait Linker<'x> {
    // Required methods
    fn link_ref<A, B>(&mut self, ast: NodeId<A>, with: B)
       where NodeId<A>: Into<ASTFamily>,
             B: Into<RLTFamily<'x>>;
    fn link_existing<A, B>(&mut self, a: A, b: &B) -> A
       where A: Identifiable + 'static,
             B: Identifiable + 'static,
             NodeId<A>: Into<ASTFamily>,
             NodeId<B>: Into<ASTFamily>;

    // Provided method
    fn link<A, B>(&mut self, ast: A, with: B) -> A
       where A: Identifiable + 'static,
             NodeId<A>: Into<ASTFamily>,
             B: Into<RLTFamily<'x>> { ... }
}

Required Methods§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§