[−][src]Struct rustc_traits::type_op::AscribeUserTypeCx
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]
&mut self,
value: T
) -> T where
T: TypeFoldable<'tcx>,
pub(in type_op) fn relate<T>(
&mut self,
a: T,
variance: Variance,
b: T
) -> Result<(), NoSolution> where
T: ToTrace<'tcx>, [src]
&mut self,
a: T,
variance: Variance,
b: T
) -> Result<(), NoSolution> where
T: ToTrace<'tcx>,
pub(in type_op) fn prove_predicate(
&mut self,
predicate: Predicate<'tcx>
)[src]
&mut self,
predicate: Predicate<'tcx>
)
pub(in type_op) fn tcx(
&self
) -> TyCtxt<'tcx>[src]
&self
) -> TyCtxt<'tcx>
pub(in type_op) fn subst<T>(
&self,
value: T,
substs: &[GenericArg<'tcx>]
) -> T where
T: TypeFoldable<'tcx>, [src]
&self,
value: T,
substs: &[GenericArg<'tcx>]
) -> T where
T: TypeFoldable<'tcx>,
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]
&mut self,
mir_ty: Ty<'tcx>,
def_id: DefId,
user_substs: UserSubsts<'tcx>
) -> Result<(), NoSolution>
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,
'tcx: 'me,
impl<'me, 'tcx> !UnwindSafe for AscribeUserTypeCx<'me, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,