#[repr(C)]pub struct UseEntry {
pub owner_raw: u32,
pub def_index: u32,
pub name_offset: u32,
pub type_def: u32,
pub value_def: u32,
pub macro_def: u32,
pub vis: u8,
pub flags: u8,
pub prim_tag: u8,
pub _pad: u8,
}Expand description
Fixed-size 28-byte module use / glob / re-export / extern crate row in uses,
sorted by (owner_raw, name_str, ...) for O(log N) lookup by owner and identifier.
Fields§
§owner_raw: u32§def_index: u32§name_offset: u32§type_def: u32§value_def: u32§macro_def: u32§vis: u8§flags: u8§prim_tag: u8§_pad: u8Implementations§
Source§impl UseEntry
impl UseEntry
pub const fn to_le(self) -> Self
pub const fn from_le(self) -> Self
pub const fn owner_raw(&self) -> u32
pub const fn owner(&self) -> UseOwner
pub const fn def_index(&self) -> Option<u32>
pub const fn name_offset(&self) -> u32
pub const fn type_def(&self) -> Option<TyDefId>
pub const fn value_def(&self) -> Option<TyDefId>
pub const fn macro_def(&self) -> Option<TyDefId>
pub const fn visibility(&self) -> ItemVis
pub const fn prim_ty(&self) -> UsePrimTy
Trait Implementations§
impl Copy for UseEntry
impl Eq for UseEntry
impl StructuralPartialEq for UseEntry
Auto Trait Implementations§
impl Forget for UseEntry
impl Freeze for UseEntry
impl Move for UseEntry
impl RefUnwindSafe for UseEntry
impl Send for UseEntry
impl Sync for UseEntry
impl Unpin for UseEntry
impl UnsafeUnpin for UseEntry
impl UnwindSafe for UseEntry
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