Struct rustc::middle::trans::type_::Type[src]
pub struct Type {
// some fields omitted
}Methods
impl Type
Wrapper for LLVM TypeRef
pub struct Type {
// some fields omitted
}impl TypeWrapper for LLVM TypeRef
fn from_ref(r: TypeRef) -> Typefn to_ref(&self) -> TypeReffn void(ccx: &CrateContext) -> Typefn nil(ccx: &CrateContext) -> Typefn metadata(ccx: &CrateContext) -> Typefn i1(ccx: &CrateContext) -> Typefn i8(ccx: &CrateContext) -> Typefn i16(ccx: &CrateContext) -> Typefn i32(ccx: &CrateContext) -> Typefn i64(ccx: &CrateContext) -> Typefn f32(ccx: &CrateContext) -> Typefn f64(ccx: &CrateContext) -> Typefn bool(ccx: &CrateContext) -> Typefn char(ccx: &CrateContext) -> Typefn i8p(ccx: &CrateContext) -> Typefn int(ccx: &CrateContext) -> Typefn int_from_ty(ccx: &CrateContext, t: IntTy) -> Typefn uint_from_ty(ccx: &CrateContext, t: UintTy) -> Typefn float_from_ty(ccx: &CrateContext, t: FloatTy) -> Typefn func(args: &[Type], ret: &Type) -> Typefn variadic_func(args: &[Type], ret: &Type) -> Typefn struct_(ccx: &CrateContext, els: &[Type], packed: bool) -> Typefn named_struct(ccx: &CrateContext, name: &str) -> Typefn empty_struct(ccx: &CrateContext) -> Typefn vtable(ccx: &CrateContext) -> Typefn generic_glue_fn(cx: &CrateContext) -> Typefn glue_fn(ccx: &CrateContext, t: Type) -> Typefn tydesc(ccx: &CrateContext, str_slice_ty: Type) -> Typefn array(ty: &Type, len: u64) -> Typefn vector(ty: &Type, len: u64) -> Typefn vec(ccx: &CrateContext, ty: &Type) -> Typefn opaque_vec(ccx: &CrateContext) -> Typefn at_box(ccx: &CrateContext, ty: Type) -> Typefn opaque_trait(ccx: &CrateContext) -> Typefn kind(&self) -> TypeKindfn set_struct_body(&mut self, els: &[Type], packed: bool)fn ptr_to(&self) -> Typefn is_packed(&self) -> boolfn element_type(&self) -> Typefn array_length(&self) -> uintfn field_types(&self) -> Vec<Type>fn return_type(&self) -> Typefn func_params(&self) -> Vec<Type>fn float_width(&self) -> uintimpl TypeMethods for Typeimpl LlvmRepr for Typefn llrepr(&self, ccx: &CrateContext) -> Stringimpl Show for Typeimpl PartialEq for Typeimpl Clone for Typefn clone(&self) -> Typefn clone_from(&mut self, source: &Self)
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).