pub struct DefId {
pub index: DefIndex,
pub krate: CrateNum,
}Expand description
Proxy for def_id::DefId
Fields§
§index: DefIndex§krate: CrateNumImplementations§
Source§impl<'de> DefId
impl<'de> DefId
pub fn deserialize<__D>(__deserializer: __D) -> Result<DefId, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Ord for DefId
impl Ord for DefId
Source§impl PartialOrd for DefId
impl PartialOrd for DefId
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.