Enum cl_typeck::definition::DefKind
source · pub enum DefKind {
Undecided,
Impl(DefID),
Use(DefID),
Type(TypeKind),
Value(ValueKind),
}
Variants§
Undecided
An unevaluated definition
Impl(DefID)
An impl block
Use(DefID)
A use tree, and its parent
Type(TypeKind)
A type, such as a type
, struct
, or enum
Value(ValueKind)
A value, such as a const
, static
, or fn
Trait Implementations§
source§impl PartialEq for DefKind
impl PartialEq for DefKind
impl Eq for DefKind
impl StructuralPartialEq for DefKind
Auto Trait Implementations§
impl Freeze for DefKind
impl RefUnwindSafe for DefKind
impl Send for DefKind
impl Sync for DefKind
impl Unpin for DefKind
impl UnwindSafe for DefKind
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