Struct rustc::middle::trans::type_::Type[src]

pub struct Type {
    // some fields omitted
}

Methods

impl Type

Wrapper for LLVM TypeRef

fn from_ref(r: TypeRef) -> Type

fn to_ref(&self) -> TypeRef

fn void(ccx: &CrateContext) -> Type

fn nil(ccx: &CrateContext) -> Type

fn metadata(ccx: &CrateContext) -> Type

fn i1(ccx: &CrateContext) -> Type

fn i8(ccx: &CrateContext) -> Type

fn i16(ccx: &CrateContext) -> Type

fn i32(ccx: &CrateContext) -> Type

fn i64(ccx: &CrateContext) -> Type

fn f32(ccx: &CrateContext) -> Type

fn f64(ccx: &CrateContext) -> Type

fn bool(ccx: &CrateContext) -> Type

fn char(ccx: &CrateContext) -> Type

fn i8p(ccx: &CrateContext) -> Type

fn int(ccx: &CrateContext) -> Type

fn int_from_ty(ccx: &CrateContext, t: IntTy) -> Type

fn uint_from_ty(ccx: &CrateContext, t: UintTy) -> Type

fn float_from_ty(ccx: &CrateContext, t: FloatTy) -> Type

fn func(args: &[Type], ret: &Type) -> Type

fn variadic_func(args: &[Type], ret: &Type) -> Type

fn struct_(ccx: &CrateContext, els: &[Type], packed: bool) -> Type

fn named_struct(ccx: &CrateContext, name: &str) -> Type

fn empty_struct(ccx: &CrateContext) -> Type

fn vtable(ccx: &CrateContext) -> Type

fn generic_glue_fn(cx: &CrateContext) -> Type

fn glue_fn(ccx: &CrateContext, t: Type) -> Type

fn tydesc(ccx: &CrateContext, str_slice_ty: Type) -> Type

fn array(ty: &Type, len: u64) -> Type

fn vector(ty: &Type, len: u64) -> Type

fn vec(ccx: &CrateContext, ty: &Type) -> Type

fn opaque_vec(ccx: &CrateContext) -> Type

fn at_box(ccx: &CrateContext, ty: Type) -> Type

fn opaque_trait(ccx: &CrateContext) -> Type

fn kind(&self) -> TypeKind

fn set_struct_body(&mut self, els: &[Type], packed: bool)

fn ptr_to(&self) -> Type

fn is_packed(&self) -> bool

fn element_type(&self) -> Type

fn array_length(&self) -> uint

fn field_types(&self) -> Vec<Type>

fn return_type(&self) -> Type

fn func_params(&self) -> Vec<Type>

fn float_width(&self) -> uint

Trait Implementations

impl TypeMethods for Type

fn is_reg_ty(&self) -> bool

impl LlvmRepr for Type

fn llrepr(&self, ccx: &CrateContext) -> String

Derived Implementations

impl Show for Type

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Type

fn eq(&self, __arg_0: &Type) -> bool

fn ne(&self, __arg_0: &Type) -> bool

impl Clone for Type

fn clone(&self) -> Type

fn clone_from(&mut self, source: &Self)