Struct NodeHeading
#[non_exhaustive]
pub struct NodeHeading { pub level: u8, pub setext: bool, pub closed: bool }
The metadata of a heading.
Fields
level: u8The level of the header; from 1 to 6 for ATX headings, 1 or 2 for setext headings.
setext: boolWhether the heading is setext (if not, ATX).
closed: boolWhether this ATX heading had a closing sequence of trailing hashes. Only meaningful for ATX headings (i.e. when
setextis false).
Implementations
impl NodeHeading
fn new(level: u8) -> SelfCreate a new
NodeHeadingwith the given level.
Trait Implementations
impl Clone for NodeHeading
fn clone(&self) -> Self
impl Debug for NodeHeading
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeHeading
fn default() -> Self
impl Eq for NodeHeading
impl PartialEq for NodeHeading
fn eq(&self, other: &Self) -> bool