Struct rustc_typeck::variance::constraints::CurrentItem
source · 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: InferredIndex
Auto Trait Implementations
impl RefUnwindSafe for CurrentItem
impl Send for CurrentItem
impl Sync for CurrentItem
impl Unpin for CurrentItem
impl UnwindSafe for CurrentItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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: 8 bytes