ListCodegen

Trait ListCodegen 

Source
pub trait ListCodegen: Clone {
    // Provided methods
    fn list_type<'c>(&self, session: TypingSession<'c, '_>) -> BasicTypeEnum<'c> { ... }
    fn rt_func_name(&self, func: ListRtFunc) -> String { ... }
}
Expand description

A helper trait for customising the lowering of hugr_core::std_extensions::collections::list types, hugr_core::ops::constant::CustomConsts, and ops.

Provided Methods§

Source

fn list_type<'c>(&self, session: TypingSession<'c, '_>) -> BasicTypeEnum<'c>

Source

fn rt_func_name(&self, func: ListRtFunc) -> String

Return the name of a given ListRtFunc.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§