LlvmType in rustc_codegen_llvm::abi - Rust
Description: API documentation for the Rust `LlvmType` trait in crate `rustc_codegen_llvm`.

Skip to main content

## LlvmType

# Trait LlvmType

Source

    pub(crate) trait LlvmType {
        // Required method
        fn llvm_type<'ll>(&self, cx: &GenericCx<'ll, FullCx<'ll, '_>>) -> &'ll Type;
    }

## Required Methods§

Source

#### fn llvm_type<'ll>(&self, cx: &GenericCx<'ll, FullCx<'ll, '_>>) -> &'ll Type

## Dyn Compatibility§

This trait is dyn compatible.

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

## Implementations on Foreign Types§

Source§

### impl LlvmType for Reg

Source§

#### fn llvm_type<'ll>(&self, cx: &GenericCx<'ll, FullCx<'ll, '_>>) -> &'ll Type

Source§

### impl LlvmType for CastTarget

Source§

#### fn llvm_type<'ll>(&self, cx: &GenericCx<'ll, FullCx<'ll, '_>>) -> &'ll Type

## Implementors§