Struct NodeCode
#[non_exhaustive]
pub struct NodeCode { pub num_backticks: usize, pub literal: String }
An inline code span.
Fields
num_backticks: usizeThe number of backticks
literal: StringThe content of the inline code 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.
Implementations
impl NodeCode
fn new(literal: impl Into<String>) -> SelfCreate a new
NodeCodewith the given literal.
Trait Implementations
impl Clone for NodeCode
fn clone(&self) -> Self
impl Debug for NodeCode
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeCode
fn default() -> Self
impl Eq for NodeCode
impl PartialEq for NodeCode
fn eq(&self, other: &Self) -> bool