Struct rustc_borrowck::ty::TraitPredicate [−][src]
pub struct TraitPredicate<'tcx> {
pub trait_ref: TraitRef<'tcx>,
pub constness: BoundConstness,
pub polarity: ImplPolarity,
}Fields
trait_ref: TraitRef<'tcx>constness: BoundConstnesspolarity: ImplPolarityAuto Trait Implementations
impl<'tcx> !RefUnwindSafe for TraitPredicate<'tcx>
impl<'tcx> !Send for TraitPredicate<'tcx>
impl<'tcx> !Sync for TraitPredicate<'tcx>
impl<'tcx> Unpin for TraitPredicate<'tcx>
impl<'tcx> !UnwindSafe for TraitPredicate<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
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