pub struct Node {Show 15 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 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: NodeKind§macro_name: Option<String>§text: Option<String>§tag: Option<String>Canonical same-document tag assigned during libmandoc validation.
line: u32§column: u32§flags: NodeFlags§list_kind: Option<NormalizedListKind>§display_kind: Option<DisplayKind>§compact: bool§offset: Option<String>§width: Option<String>Normalized mdoc(7) list width, including its roff scale suffix.
table_cells: Vec<TableCell>§equation: Option<String>§children: Vec<Self>Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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