pub struct Section {
pub kind: SectionKind,
pub name_span: Span,
pub span: Span,
pub items: Vec<Item>,
}Expand description
A section and its entries.
Fields§
§kind: SectionKindWhich section.
name_span: SpanThe section name in the header.
span: SpanFrom the name to the closing }.
items: Vec<Item>The entries. They may include entries that belong to another section; the parser reports those (E0205) and keeps them.
Trait Implementations§
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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