Struct NodeComment
#[non_exhaustive]
pub struct NodeComment { pub literal: String }
An inline comment span
Fields
literal: StringThe literal contents of the comment span. As the contents are not interpreted as Markdown at all, they are contained within this structure, rather than inserted into a child inline of any kind. The %% markers are not included in the literal.
Implementations
impl NodeComment
fn new(literal: impl Into<String>) -> SelfCreate a new
NodeCommentwith the given literal content.
Trait Implementations
impl Clone for NodeComment
fn clone(&self) -> Self
impl Debug for NodeComment
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeComment
fn default() -> Self
impl Eq for NodeComment
impl PartialEq for NodeComment
fn eq(&self, other: &Self) -> bool