[−][src]Struct rustc_typeck::variance::solve::SolveContext
Fields
terms_cx: TermsContext<'a, 'tcx>constraints: Vec<Constraint<'a>>solutions: Vec<Variance>Implementations
impl<'a, 'tcx> SolveContext<'a, 'tcx>[src]
pub(in variance::solve) fn solve(
&mut self
)[src]
&mut self
)
pub(in variance::solve) fn enforce_const_invariance(
&self,
generics: &Generics,
variances: &mut [Variance]
)[src]
&self,
generics: &Generics,
variances: &mut [Variance]
)
pub(in variance::solve) fn create_map(
&self
) -> FxHashMap<DefId, &'tcx [Variance]>[src]
&self
) -> FxHashMap<DefId, &'tcx [Variance]>
pub(in variance::solve) fn evaluate(
&self,
term: &'a VarianceTerm<'a>
) -> Variance[src]
&self,
term: &'a VarianceTerm<'a>
) -> Variance
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for SolveContext<'a, 'tcx>
impl<'a, 'tcx> !Send for SolveContext<'a, 'tcx>
impl<'a, 'tcx> !Sync for SolveContext<'a, 'tcx>
impl<'a, 'tcx> Unpin for SolveContext<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for SolveContext<'a, '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<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.