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§
Sourcefn list_type<'c>(&self, session: TypingSession<'c, '_>) -> BasicTypeEnum<'c>
fn list_type<'c>(&self, session: TypingSession<'c, '_>) -> BasicTypeEnum<'c>
Return the llvm type of hugr_core::std_extensions::collections::list::LIST_TYPENAME.
Sourcefn rt_func_name(&self, func: ListRtFunc) -> String
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.