Struct marker_api::ast::TyDefId
source · #[repr(C)]pub struct TyDefId { /* private fields */ }
Expand description
This ID uniquely identifies a user defined type during linting.
Stability notice:
- The ID is not stable between different sessions.
- IDs should never be stored by lint crates, as drivers might change
IDs between different
check_*
function calls. - The layout and size of this type might change. The ID will continue to provide the current trait implementations.
Trait Implementations§
source§impl Ord for TyDefId
impl Ord for TyDefId
source§impl PartialEq<TyDefId> for TyDefId
impl PartialEq<TyDefId> for TyDefId
source§impl PartialOrd<TyDefId> for TyDefId
impl PartialOrd<TyDefId> for TyDefId
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 TyDefId
impl Eq for TyDefId
impl StructuralEq for TyDefId
impl StructuralPartialEq for TyDefId
Auto Trait Implementations§
impl RefUnwindSafe for TyDefId
impl Send for TyDefId
impl Sync for TyDefId
impl Unpin for TyDefId
impl UnwindSafe for TyDefId
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