Struct NodeHtmlBlock
#[non_exhaustive]
pub struct NodeHtmlBlock { pub block_type: u8, pub literal: String }
The metadata of an included HTML block.
Fields
block_type: u8The HTML block's type
literal: StringThe literal contents of the HTML block. Per NodeCodeBlock, the content is included here rather than in any inline.
Implementations
impl NodeHtmlBlock
fn new(literal: impl Into<String>) -> SelfCreate a new
NodeHtmlBlockwith the given literal content.
Trait Implementations
impl Clone for NodeHtmlBlock
fn clone(&self) -> Self
impl Debug for NodeHtmlBlock
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeHtmlBlock
fn default() -> Self
impl Eq for NodeHtmlBlock
impl PartialEq for NodeHtmlBlock
fn eq(&self, other: &Self) -> bool