Trait verilization_compiler::lang::generator::Generator [−][src]
pub trait Generator<'model>: Sized { type Lang: GeneratorNameMapping; fn model(&self) -> &'model Verilization; fn scope(&self) -> &Scope<'model>; fn build_type<'gen>(
&'gen self,
version: &BigUint,
t: &Type
) -> Result<LangType<'model>, GeneratorError> { ... } fn build_codec(
&self,
t: LangType<'model>
) -> Result<LangExpr<'model>, GeneratorError> { ... } fn build_conversion(
&self,
prev_ver: &BigUint,
version: &BigUint,
t: &Type,
param: ConvertParam<'model>
) -> Result<LangExpr<'model>, GeneratorError> { ... } fn build_value(
&self,
version: &BigUint,
t: LangType<'model>,
value: ConstantValue
) -> Result<LangExpr<'model>, GeneratorError> { ... } }
Associated Types
Loading content...Required methods
Loading content...Provided methods
fn build_type<'gen>(
&'gen self,
version: &BigUint,
t: &Type
) -> Result<LangType<'model>, GeneratorError>
[src]
&'gen self,
version: &BigUint,
t: &Type
) -> Result<LangType<'model>, GeneratorError>
fn build_codec(
&self,
t: LangType<'model>
) -> Result<LangExpr<'model>, GeneratorError>
[src]
&self,
t: LangType<'model>
) -> Result<LangExpr<'model>, GeneratorError>
fn build_conversion(
&self,
prev_ver: &BigUint,
version: &BigUint,
t: &Type,
param: ConvertParam<'model>
) -> Result<LangExpr<'model>, GeneratorError>
[src]
&self,
prev_ver: &BigUint,
version: &BigUint,
t: &Type,
param: ConvertParam<'model>
) -> Result<LangExpr<'model>, GeneratorError>
fn build_value(
&self,
version: &BigUint,
t: LangType<'model>,
value: ConstantValue
) -> Result<LangExpr<'model>, GeneratorError>
[src]
&self,
version: &BigUint,
t: LangType<'model>,
value: ConstantValue
) -> Result<LangExpr<'model>, GeneratorError>