Struct stable_mir::CrateItem
source · pub struct CrateItem(pub DefId);
Expand description
Holds information about an item in a crate.
Tuple Fields§
§0: DefId
Implementations§
Trait Implementations§
source§impl CrateDef for CrateItem
impl CrateDef for CrateItem
source§impl PartialEq for CrateItem
impl PartialEq for CrateItem
source§impl TryFrom<CrateItem> for Instance
impl TryFrom<CrateItem> for Instance
Try to convert a crate item into an instance. The item cannot be generic in order to be converted into an instance.
source§impl TryFrom<Instance> for CrateItem
impl TryFrom<Instance> for CrateItem
Try to convert an instance into a crate item. Only user defined instances can be converted.
impl Copy for CrateItem
impl Eq for CrateItem
impl StructuralPartialEq for CrateItem
Auto Trait Implementations§
impl Freeze for CrateItem
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