#[repr(C)]pub struct AssocTyEntry {
pub impl_index: u32,
pub def_index: u32,
pub name_offset: u32,
pub ty: u32,
}Expand description
Associated type binding inside an ImplEntry (type Item = T;, 16 bytes, 4-byte aligned).
Stored contiguously per ImplEntry (assoc_tys_start..assoc_tys_start + assoc_tys_len).
Fields§
§impl_index: u32Index of the owning ImplEntry in impls.
def_index: u32Local DefEntry index in definitions, or u32::MAX if metadata-only.
name_offset: u32Offset of the associated type identifier in string_pool.
ty: u32Lowered RHS TyId in TyArena.
Implementations§
Trait Implementations§
Source§impl Clone for AssocTyEntry
impl Clone for AssocTyEntry
impl Copy for AssocTyEntry
Source§impl Debug for AssocTyEntry
impl Debug for AssocTyEntry
Source§impl Default for AssocTyEntry
impl Default for AssocTyEntry
impl Eq for AssocTyEntry
Source§impl PartialEq for AssocTyEntry
impl PartialEq for AssocTyEntry
impl StructuralPartialEq for AssocTyEntry
Auto Trait Implementations§
impl Forget for AssocTyEntry
impl Freeze for AssocTyEntry
impl Move for AssocTyEntry
impl RefUnwindSafe for AssocTyEntry
impl Send for AssocTyEntry
impl Sync for AssocTyEntry
impl Unpin for AssocTyEntry
impl UnsafeUnpin for AssocTyEntry
impl UnwindSafe for AssocTyEntry
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