pub trait DerivedTypeMethods<'tcx>: BaseTypeMethods<'tcx> + MiscMethods<'tcx> {
    // Provided methods
    fn type_int(&self) -> Self::Type { ... }
    fn type_from_integer(&self, i: Integer) -> 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_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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'tcx, T> DerivedTypeMethods<'tcx> for T
where Self: BaseTypeMethods<'tcx> + MiscMethods<'tcx>,