pub enum ItemKind {
Module(Module),
Alias(Alias),
Enum(Enum),
Struct(Struct),
Const(Const),
Static(Static),
Function(Function),
Impl(Impl),
Use(Use),
}
Expand description
What kind of Item is this?
Variants§
Module(Module)
A module
Alias(Alias)
Enum(Enum)
An enumerated type, with a discriminant and optional data
Struct(Struct)
Const(Const)
A constant
Static(Static)
A static variable
Function(Function)
Impl(Impl)
Use(Use)
An import
Trait Implementations§
source§impl PartialEq for ItemKind
impl PartialEq for ItemKind
impl Eq for ItemKind
impl StructuralPartialEq for ItemKind
Auto Trait Implementations§
impl Freeze for ItemKind
impl RefUnwindSafe for ItemKind
impl Send for ItemKind
impl Sync for ItemKind
impl Unpin for ItemKind
impl UnwindSafe for ItemKind
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