Struct rustc_typeck::variance::constraints::CurrentItem [−][src]
pub struct CurrentItem {
inferred_start: InferredIndex,
}Expand description
To build constraints, we visit one item (type, trait) at a time and look at its contents. So e.g., if we have
struct Foo<T> { b: Bar<T> }
then while we are visiting Bar<T>, the CurrentItem would have
the DefId and the start of Foo’s inferreds.
Fields
inferred_start: InferredIndexAuto Trait Implementations
impl RefUnwindSafe for CurrentItem
impl Send for CurrentItem
impl Sync for CurrentItem
impl Unpin for CurrentItem
impl UnwindSafe for CurrentItem
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,