Type Definition rustc_middle::ty::sty::PolyTraitRef
source · Implementations
sourceimpl<'tcx> PolyTraitRef<'tcx>
impl<'tcx> PolyTraitRef<'tcx>
pub fn self_ty(&self) -> Binder<'tcx, Ty<'tcx>>
pub fn def_id(&self) -> DefId
pub fn to_poly_trait_predicate(&self) -> PolyTraitPredicate<'tcx>
sourcepub fn to_poly_trait_predicate_negative_polarity(
&self
) -> PolyTraitPredicate<'tcx>
pub fn to_poly_trait_predicate_negative_polarity(
&self
) -> PolyTraitPredicate<'tcx>
Same as PolyTraitRef::to_poly_trait_predicate
but sets a negative polarity instead.
sourceimpl<'tcx> PolyTraitRef<'tcx>
impl<'tcx> PolyTraitRef<'tcx>
pub fn with_constness(
self,
constness: BoundConstness
) -> PolyTraitPredicate<'tcx>
pub fn without_const(self) -> PolyTraitPredicate<'tcx>
Trait Implementations
sourceimpl IntoDiagnosticArg for PolyTraitRef<'_>
impl IntoDiagnosticArg for PolyTraitRef<'_>
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>
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: 24 bytes