pub struct Item {
pub docs: Vec<Doc>,
pub kind: ItemKind,
pub span: Span,
}Expand description
A declaration inside a section.
Fields§
§docs: Vec<Doc>Outer doc comments before it.
kind: ItemKindWhat it is.
span: SpanThe whole declaration.
Trait Implementations§
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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