Type Definition rustc_middle::ty::PolyTraitPredicate
source · pub type PolyTraitPredicate<'tcx> = Binder<'tcx, TraitPredicate<'tcx>>;
Implementations§
source§impl<'tcx> PolyTraitPredicate<'tcx>
impl<'tcx> PolyTraitPredicate<'tcx>
pub fn print_modifiers_and_trait_path( self ) -> Binder<'tcx, TraitPredPrintModifiersAndPath<'tcx>>
source§impl<'tcx> PolyTraitPredicate<'tcx>
impl<'tcx> PolyTraitPredicate<'tcx>
pub fn def_id(self) -> DefId
pub fn self_ty(self) -> Binder<'tcx, Ty<'tcx>>
sourcepub fn remap_constness_diag(&mut self, param_env: ParamEnv<'tcx>)
pub fn remap_constness_diag(&mut self, param_env: ParamEnv<'tcx>)
Remap the constness of this predicate before emitting it for diagnostics.
pub fn is_const_if_const(self) -> bool
pub fn polarity(self) -> ImplPolarity
Trait Implementations§
source§impl<'tcx> ToPolyTraitRef<'tcx> for PolyTraitPredicate<'tcx>
impl<'tcx> ToPolyTraitRef<'tcx> for PolyTraitPredicate<'tcx>
fn to_poly_trait_ref(&self) -> PolyTraitRef<'tcx>
source§impl<'tcx> ToPredicate<'tcx, Predicate<'tcx>> for PolyTraitPredicate<'tcx>
impl<'tcx> ToPredicate<'tcx, Predicate<'tcx>> for PolyTraitPredicate<'tcx>
fn to_predicate(self, tcx: TyCtxt<'tcx>) -> Predicate<'tcx>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size:32 bytes