Struct rustc_trait_selection::traits::util::Elaborator
source · pub struct Elaborator<'tcx, O> {
stack: Vec<O, Global>,
visited: PredicateSet<'tcx>,
only_self: bool,
}
Expand description
“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<O, Global>
§visited: PredicateSet<'tcx>
§only_self: bool
Auto Trait Implementations§
impl<'tcx, O> !RefUnwindSafe for Elaborator<'tcx, O>
impl<'tcx, O> !Send for Elaborator<'tcx, O>
impl<'tcx, O> !Sync for Elaborator<'tcx, O>
impl<'tcx, O> Unpin for Elaborator<'tcx, O>where O: Unpin,
impl<'tcx, O> !UnwindSafe for Elaborator<'tcx, O>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<I> IntoIterator for Iwhere
I: Iterator,
impl<I> IntoIterator for Iwhere I: Iterator,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes