pub struct NodeFlags {
pub generated: bool,
pub sentence_end: bool,
pub no_print: bool,
pub no_fill: bool,
pub deep_link_target: bool,
pub permalink: bool,
pub line_start: bool,
pub delimiter_open: bool,
pub delimiter_close: bool,
}Expand description
Source and renderer flags needed by a lowering or rendering pass.
Fields§
§generated: boolThe node was synthesized by libmandoc rather than written explicitly.
sentence_end: boolThe node ends a sentence according to libmandoc punctuation rules.
no_print: boolThe node must not contribute visible output.
no_fill: boolThe node belongs to a no-fill region that preserves source lines.
deep_link_target: boollibmandoc selected this node as a same-document destination.
permalink: boollibmandoc renders a self-link for this destination.
line_start: boolThis node begins a roff input line (NODE_LINE).
Some man macros keep same-line layout arguments and next-line visible content in one syntax head, so source-line role is semantic data.
delimiter_open: boolThis text node is opening punctuation and suppresses spacing after it.
delimiter_close: boolThis text node is closing punctuation and suppresses spacing before it.
Trait Implementations§
impl Copy for NodeFlags
Source§impl<'de> Deserialize<'de> for NodeFlags
impl<'de> Deserialize<'de> for NodeFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeFlags
impl StructuralPartialEq for NodeFlags
Auto Trait Implementations§
impl Freeze for NodeFlags
impl RefUnwindSafe for NodeFlags
impl Send for NodeFlags
impl Sync for NodeFlags
impl Unpin for NodeFlags
impl UnsafeUnpin for NodeFlags
impl UnwindSafe for NodeFlags
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