pub struct Node {Show 17 fields
pub kind: NodeKind,
pub macro_name: Option<String>,
pub text: Option<String>,
pub tag: Option<String>,
pub line: u32,
pub column: u32,
pub flags: NodeFlags,
pub list_kind: Option<NormalizedListKind>,
pub display_kind: Option<DisplayKind>,
pub font: Option<NormalizedFont>,
pub author_mode: Option<AuthorMode>,
pub compact: bool,
pub offset: Option<String>,
pub width: Option<String>,
pub table_cells: Vec<TableCell>,
pub equation: Option<String>,
pub children: Vec<Self>,
}Expand description
An owned syntax node with no pointers into the C parser.
Fields§
§kind: NodeKindStructural role of this node in the libmandoc tree.
macro_name: Option<String>Source macro name, without the leading dot, when applicable.
text: Option<String>Visible text carried by a text node.
tag: Option<String>Canonical same-document tag assigned during libmandoc validation.
line: u32One-based source line reported by libmandoc, or zero when unavailable.
column: u32One-based source column reported by libmandoc, or zero when unavailable.
flags: NodeFlagsSource and renderer flags attached to the node.
list_kind: Option<NormalizedListKind>Normalized list behavior for an mdoc list block.
display_kind: Option<DisplayKind>Fill behavior for an mdoc display block.
font: Option<NormalizedFont>Font selected by an mdoc font block.
Author layout mode selected by an mdoc author macro.
compact: boolWhether the enclosing list requests compact vertical layout.
offset: Option<String>Raw normalized display/list offset, including a roff scale suffix.
width: Option<String>Normalized mdoc(7) list width, including its roff scale suffix.
table_cells: Vec<TableCell>Cells copied from a tbl(7) row represented by this node.
equation: Option<String>Normalized eqn(7) expression carried by this node.
children: Vec<Self>Child nodes in source order.