Skip to main content

ToLLVMType

Trait ToLLVMType 

Source
pub trait ToLLVMType: Type {
    // Required method
    fn convert(&self, ctx: &Context) -> Result<TypeHandle>;
}
Expand description

Interface for converting to an LLVM type.

Required Methods§

Source

fn convert(&self, ctx: &Context) -> Result<TypeHandle>

Convert self to an LLVM type.

Trait Implementations§

Implementations on Foreign Types§

Source§

impl ToLLVMType for FunctionType

Source§

impl ToLLVMType for UnitType

Implementors§