#[repr(C)]pub struct WherePredEntry {
pub owner_key: u32,
pub lhs_ty: u32,
pub trait_def: u32,
pub trait_args_start: u32,
pub rhs_or_region: u32,
pub assoc_name_offset: u32,
pub trait_args_len: u16,
pub kind: u8,
pub flags: u8,
}Expand description
Structured where / inline bound / supertrait / assoc-item bound predicate (28 bytes, 4-byte aligned).
Sorted on disk by owner_key (GenericOwner::to_raw()), preserving declaration order per owner.
Fields§
§owner_key: u32Encoded GenericOwner (Def(def_idx) or Impl(impl_idx)).
lhs_ty: u32Constrained TyId (TraitBound, ProjectionEq self_ty, TypeOutlives), or lhs region (RegionOutlives).
trait_def: u32Target trait TyDefId (TraitBound / ProjectionEq), or u32::MAX for outlives clauses.
trait_args_start: u32Start index in ty_args for trait_def’s generic args excluding Self (0 if empty).
rhs_or_region: u32For ProjectionEq: RHS TyId (u32::MAX if non-type const term).
For TypeOutlives / RegionOutlives: target lifetime (LIFETIME_STATIC, LIFETIME_ELIDED, or region index).
For TraitBound: u32::MAX.
assoc_name_offset: u32Associated item name offset in string_pool for ProjectionEq (e.g. "Item", "Output"), else u32::MAX.
trait_args_len: u16Number of GenericArgWords starting at trait_args_start.
kind: u8WherePredKind (0..=3).
flags: u8WHERE_FLAG_* bitmask.