Struct stable_mir::CrateItem
source · pub struct CrateItem(pub DefId);
Expand description
Holds information about an item in the crate.
For now, it only stores the item DefId. Use functions inside rustc_internal
module to
use this item.
Tuple Fields§
§0: DefId
Implementations§
Trait Implementations§
source§impl PartialEq<CrateItem> for CrateItem
impl PartialEq<CrateItem> for CrateItem
impl Eq for CrateItem
impl StructuralEq for CrateItem
impl StructuralPartialEq for CrateItem
Auto Trait Implementations§
impl RefUnwindSafe for CrateItem
impl Send for CrateItem
impl Sync for CrateItem
impl Unpin for CrateItem
impl UnwindSafe for CrateItem
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
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