Struct llvm_ir::types::Types[][src]

pub struct Types { /* fields omitted */ }
Expand description

Holds a reference to all of the Types used in the Module, and facilitates lookups so you can get a TypeRef to the Type you want.

Implementations

Get the type of anything that is Typed

Get the void type

Get the integer type of the specified size (in bits)

Get the boolean type (i1)

Get the 8-bit integer type

Get the 16-bit integer type

Get the 32-bit integer type

Get the 64-bit integer type

Get a pointer type in the default address space (0)

Get a pointer type in the specified address space

Get a floating-point type

Get the single-precision floating-point type

Get the double-precision floating-point type

Get a function type

Get an array type

Get a struct type

Get the TypeRef for the struct with the given name, or None if there is no struct by that name.

Note that this gives a NamedStructType. To get the actual definition of a named struct (the NamedStructDef), use named_struct_def().

Get the NamedStructDef for the struct with the given name, or None if there is no struct by that name.

Note that this gives a NamedStructDef. To get the NamedStructType for a name, use named_struct().

Get the names of all the named structs

Get the X86_MMX type

Get the metadata type

Get the label type

Get the token type

Get a TypeRef for the given Type

Get a blank Types containing essentially no types. This function is intended only for use in testing; it’s probably not useful otherwise.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Performs the conversion.

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)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.