Struct NodeCommentBlock
#[non_exhaustive]
pub struct NodeCommentBlock { pub literal: String, pub closed: bool }
A block comment span
Fields
literal: StringThe literal contents of the comment block. 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.
closed: boolWhether this comment block was explicitly closed by a closing fence.
Implementations
impl NodeCommentBlock
fn new(literal: impl Into<String>) -> SelfCreate a new
NodeCommentBlockwith the given literal content.
Trait Implementations
impl Clone for NodeCommentBlock
fn clone(&self) -> Self
impl Debug for NodeCommentBlock
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeCommentBlock
fn default() -> Self
impl Eq for NodeCommentBlock
impl PartialEq for NodeCommentBlock
fn eq(&self, other: &Self) -> bool