pub enum ItemKind {
Fn(Option<FnSig>),
Struct(StructDef),
Enum(EnumDef),
Trait(Trait),
Impl(Impl),
Const(ConstantInfo),
TyAlias(Box<TyAlias>),
Mod,
}
Variants§
Fn(Option<FnSig>)
Struct(StructDef)
Enum(EnumDef)
Trait(Trait)
Impl(Impl)
Const(ConstantInfo)
TyAlias(Box<TyAlias>)
Mod
Modules can’t be refined but we collect attributes for them, e.g., #[trusted]
This kind is also used for the crate root, for which we also collect attributes.
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