pub enum DefKind {
Struct,
Enum,
Alias,
IntrinsicType,
Interface,
Fn,
Config,
ExternFn,
ExternType,
Variant {
parent: DefId,
payload: Payload,
},
Member {
owner: DefId,
method: bool,
},
}Expand description
The kinds of declarations.
Variants§
Struct
struct
Enum
enum
Alias
type A = B
IntrinsicType
intrinsic type
Interface
interface
Fn
A free function.
Config
A config constant.
ExternFn
A function from extern.
ExternType
An opaque type from extern.
Variant
A variant of an enum.
Member
A function in an inherent impl block (a method if it takes self).
Implementations§
Trait Implementations§
impl Copy 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 UnsafeUnpin 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