rustc_codegen_ssa::traits

Trait DerivedTypeCodegenMethods

source
pub trait DerivedTypeCodegenMethods<'tcx>:
    BaseTypeCodegenMethods<'tcx>
    + MiscCodegenMethods<'tcx>
    + HasTyCtxt<'tcx> {
    // Provided methods
    fn type_int(&self) -> Self::Type { ... }
    fn type_from_integer(&self, i: Integer) -> Self::Type { ... }
    fn type_from_float(&self, f: Float) -> Self::Type { ... }
    fn type_needs_drop(&self, ty: Ty<'tcx>) -> bool { ... }
    fn type_is_sized(&self, ty: Ty<'tcx>) -> bool { ... }
    fn type_is_freeze(&self, ty: Ty<'tcx>) -> bool { ... }
    fn type_has_metadata(&self, ty: Ty<'tcx>) -> bool { ... }
}

Provided Methods§

source

fn type_int(&self) -> Self::Type

source

fn type_from_integer(&self, i: Integer) -> Self::Type

source

fn type_from_float(&self, f: Float) -> Self::Type

source

fn type_needs_drop(&self, ty: Ty<'tcx>) -> bool

source

fn type_is_sized(&self, ty: Ty<'tcx>) -> bool

source

fn type_is_freeze(&self, ty: Ty<'tcx>) -> bool

source

fn type_has_metadata(&self, ty: Ty<'tcx>) -> bool

Implementors§

source§

impl<'tcx, T> DerivedTypeCodegenMethods<'tcx> for T
where Self: BaseTypeCodegenMethods<'tcx> + MiscCodegenMethods<'tcx> + HasTyCtxt<'tcx>,