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§

Source§

impl TypeImplsInterface<dyn ToLLVMType> for FunctionType

Source§

impl TypeImplsInterface<dyn ToLLVMType> for UnitType

Source§

impl TypeInterfaceMarker for dyn ToLLVMType

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§

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

Source§

impl ToLLVMType for UnitType

Source§

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

Implementors§