[−][src]Struct rustc_traits::type_op::AscribeUserTypeCx

pub(in type_op) struct AscribeUserTypeCx<'me, 'tcx> {
    infcx: &'me InferCtxt<'me, 'tcx>,
    param_env: ParamEnv<'tcx>,
    fulfill_cx: &'me mut dyn TraitEngine<'tcx>,
}

Fields

infcx: &'me InferCtxt<'me, 'tcx>param_env: ParamEnv<'tcx>fulfill_cx: &'me mut dyn TraitEngine<'tcx>

Implementations

impl<'me, 'tcx> AscribeUserTypeCx<'me, 'tcx>[src]

pub(in type_op) fn normalize<T>(
    &mut self,
    value: T
) -> T where
    T: TypeFoldable<'tcx>, 
[src]

pub(in type_op) fn relate<T>(
    &mut self,
    a: T,
    variance: Variance,
    b: T
) -> Result<(), NoSolution> where
    T: ToTrace<'tcx>, 
[src]

pub(in type_op) fn prove_predicate(
    &mut self,
    predicate: Predicate<'tcx>
)
[src]

pub(in type_op) fn tcx(
    &self
) -> TyCtxt<'tcx>
[src]

pub(in type_op) fn subst<T>(
    &self,
    value: T,
    substs: &[GenericArg<'tcx>]
) -> T where
    T: TypeFoldable<'tcx>, 
[src]

pub(in type_op) fn relate_mir_and_user_ty(
    &mut self,
    mir_ty: Ty<'tcx>,
    def_id: DefId,
    user_substs: UserSubsts<'tcx>
) -> Result<(), NoSolution>
[src]

Auto Trait Implementations

impl<'me, 'tcx> !RefUnwindSafe for AscribeUserTypeCx<'me, 'tcx>

impl<'me, 'tcx> !Send for AscribeUserTypeCx<'me, 'tcx>

impl<'me, 'tcx> !Sync for AscribeUserTypeCx<'me, 'tcx>

impl<'me, 'tcx> Unpin for AscribeUserTypeCx<'me, 'tcx> where
    'tcx: 'me, 

impl<'me, 'tcx> !UnwindSafe for AscribeUserTypeCx<'me, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.