rustc_codegen_ssa::traits

Trait DerivedTypeCodegenMethods

Source
pub trait DerivedTypeCodegenMethods<'tcx>:
    BaseTypeCodegenMethods<'tcx>
    + MiscCodegenMethods<'tcx>
    + HasTyCtxt<'tcx>
    + HasTypingEnv<'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> + HasTypingEnv<'tcx>,