pub struct Heading {
pub meta: NodeMeta,
pub depth: u8,
pub kind: HeadingKind,
pub children: Vec<Inline>,
}Expand description
A heading. Source: # Title (ATX) or Title\n=== (setext).
Fields§
§meta: NodeMetaNode metadata (source span).
depth: u8Heading level, 1..=6.
kind: HeadingKindWhether the heading used ATX or setext syntax.
children: Vec<Inline>The heading’s inline content.
Implementations§
Trait Implementations§
impl Eq for Heading
impl StructuralPartialEq for Heading
Auto Trait Implementations§
impl Freeze for Heading
impl RefUnwindSafe for Heading
impl Send for Heading
impl Sync for Heading
impl Unpin for Heading
impl UnsafeUnpin for Heading
impl UnwindSafe for Heading
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