pub struct DefId {
pub program_id: usize,
pub id: usize,
}
Expand description
Definition id.
Fields§
§program_id: usize
§id: usize
Trait Implementations§
source§impl Ord for DefId
impl Ord for DefId
source§impl PartialEq for DefId
impl PartialEq for DefId
source§impl PartialOrd for DefId
impl PartialOrd for DefId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DefId
impl Eq for DefId
impl StructuralPartialEq for DefId
Auto Trait Implementations§
impl Freeze for DefId
impl RefUnwindSafe for DefId
impl Send for DefId
impl Sync for DefId
impl Unpin for DefId
impl UnwindSafe for DefId
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