Type Definition rustc_infer::traits::PredicateObligation
source · pub type PredicateObligation<'tcx> = Obligation<'tcx, Predicate<'tcx>>;
Implementations§
source§impl<'tcx> PredicateObligation<'tcx>
impl<'tcx> PredicateObligation<'tcx>
sourcepub fn flip_polarity(
&self,
tcx: TyCtxt<'tcx>
) -> Option<PredicateObligation<'tcx>>
pub fn flip_polarity(
&self,
tcx: TyCtxt<'tcx>
) -> Option<PredicateObligation<'tcx>>
Flips the polarity of the inner predicate.
Given T: Trait
predicate it returns T: !Trait
and given T: !Trait
returns T: Trait
.
pub fn without_const(self, tcx: TyCtxt<'tcx>) -> PredicateObligation<'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: 48 bytes