Struct chalk_integration::lowering::env::AssociatedTyLookup
source · pub struct AssociatedTyLookup {
pub id: AssocTypeId<ChalkIr>,
pub addl_variable_kinds: Vec<VariableKind<ChalkIr>>,
}
Expand description
Information about an associated type declaration (i.e., an
AssociatedTyDatum
). This information is gathered in the first
phase of creating the Rust IR and is then later used to lookup the
“id” of an associated type.
ⓘ
trait Foo {
type Bar<'a>; // <-- associated type declaration
// ----
// |
// addl_variable_kinds
}
Fields§
§id: AssocTypeId<ChalkIr>
§addl_variable_kinds: Vec<VariableKind<ChalkIr>>
Trait Implementations§
source§impl Debug for AssociatedTyLookup
impl Debug for AssociatedTyLookup
source§impl PartialEq for AssociatedTyLookup
impl PartialEq for AssociatedTyLookup
source§fn eq(&self, other: &AssociatedTyLookup) -> bool
fn eq(&self, other: &AssociatedTyLookup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AssociatedTyLookup
impl StructuralPartialEq for AssociatedTyLookup
Auto Trait Implementations§
impl Freeze for AssociatedTyLookup
impl RefUnwindSafe for AssociatedTyLookup
impl Send for AssociatedTyLookup
impl Sync for AssociatedTyLookup
impl Unpin for AssociatedTyLookup
impl UnwindSafe for AssociatedTyLookup
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<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.