[−][src]Struct rustc_typeck::variance::solve::SolveContext

pub(in variance::solve) struct SolveContext<'a, 'tcx> {
    terms_cx: TermsContext<'a, 'tcx>,
    constraints: Vec<Constraint<'a>>,
    solutions: Vec<Variance>,
}

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]

pub(in variance::solve) fn enforce_const_invariance(
    &self,
    generics: &Generics,
    variances: &mut [Variance]
)
[src]

pub(in variance::solve) fn create_map(
    &self
) -> FxHashMap<DefId, &'tcx [Variance]>
[src]

pub(in variance::solve) fn evaluate(
    &self,
    term: &'a VarianceTerm<'a>
) -> Variance
[src]

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]

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

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

impl<'a, T> Captures<'a> 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.

impl<T> WithConstness for T[src]