[−][src]Struct rustc_infer::traits::util::Elaborator

pub struct Elaborator<'tcx> {
    stack: Vec<PredicateObligation<'tcx>>,
    visited: PredicateSet<'tcx>,
}

"Elaboration" is the process of identifying all the predicates that are implied by a source predicate. Currently, this basically means walking the "supertraits" and other similar assumptions. For example, if we know that T: Ord, the elaborator would deduce that T: PartialOrd holds as well. Similarly, if we have trait Foo: 'static, and we know that T: Foo, then we know that T: 'static.

Fields

stack: Vec<PredicateObligation<'tcx>>visited: PredicateSet<'tcx>

Implementations

impl<'tcx> Elaborator<'tcx>[src]

pub fn filter_to_traits(self) -> FilterToTraits<Self>ⓘ

Notable traits for FilterToTraits<I>

impl<'tcx, I: Iterator<Item = PredicateObligation<'tcx>>> Iterator for FilterToTraits<I> type Item = PolyTraitRef<'tcx>;
[src]

pub(in traits::util) fn elaborate(
    &mut self,
    obligation: &PredicateObligation<'tcx>
)
[src]

Trait Implementations

impl<'tcx> Iterator for Elaborator<'tcx>[src]

type Item = PredicateObligation<'tcx>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for Elaborator<'tcx>

impl<'tcx> !Send for Elaborator<'tcx>

impl<'tcx> !Sync for Elaborator<'tcx>

impl<'tcx> Unpin for Elaborator<'tcx>

impl<'tcx> !UnwindSafe for Elaborator<'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<I> IntoIterator for I where
    I: Iterator, 
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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]