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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToLLVMType for FunctionType

Source§

impl ToLLVMType for UnitType

Implementors§