Struct llama::Type

source · []
pub struct Type<'a>(_, _);
Expand description

LLVMType wrapper

Implementations

Wrap an LLVMType pointer

Allows for conversion between Rust/LLVM types

Get type by name

Get width of integer type

Get associated context

Create int type

Create i64 type

Create i32 type

Create i16 type

Create i8 type

Create i1 type

Returns true if the types kind matches kind

Create void type

Create label type

Create token type

Create metadata type

Create x86MMX type

Create half/float16 type

Create float type

Create double type

Create FP128 type

Get type of element

Convert to function type

Convert to struct type

Make pointer type

Make vector type

Make array type

Get type kind

Returns true if a type is sized

Get array length

Get vector length

Get pointer address space

Get alignment of type

Get size of type

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Return a LLVM pointer

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.