Trait hydro_lang::deploy::Node

source ·
pub trait Node {
    type Port;
    type Meta;
    type InstantiateEnv;

    // Required methods
    fn next_port(&self) -> Self::Port;
    fn update_meta(&mut self, meta: &Self::Meta);
    fn instantiate(
        &self,
        env: &mut Self::InstantiateEnv,
        meta: &mut Self::Meta,
        graph: DfirGraph,
        extra_stmts: Vec<Stmt>,
    );
}

Required Associated Types§

Required Methods§

source

fn next_port(&self) -> Self::Port

source

fn update_meta(&mut self, meta: &Self::Meta)

source

fn instantiate( &self, env: &mut Self::InstantiateEnv, meta: &mut Self::Meta, graph: DfirGraph, extra_stmts: Vec<Stmt>, )

Implementors§