[][src]Trait llir::types::StructTypeTrait

pub trait StructTypeTrait<'ctx>: TypeRef {
    fn num_element_types(&self) -> usize { ... }
fn element_types(&self) -> Vec<Type<'ctx>> { ... }
fn element_type(&self, index: usize) -> Option<Type<'ctx>> { ... } }

The struct type API applicable to every struct type

Provided methods

fn num_element_types(&self) -> usize

Get the number of element types in the Struct

fn element_types(&self) -> Vec<Type<'ctx>>

Get the element types in vector

fn element_type(&self, index: usize) -> Option<Type<'ctx>>

Get the element type at a given index

Loading content...

Implementors

impl<'ctx> StructTypeTrait<'ctx> for StructType<'ctx>[src]

impl<'ctx> StructTypeTrait<'ctx> for LiteralStructType<'ctx>[src]

impl<'ctx> StructTypeTrait<'ctx> for NamedStructType<'ctx>[src]

Loading content...