Struct NodeMath
#[non_exhaustive]
pub struct NodeMath { pub dollar_math: bool, pub display_math: bool, pub literal: String }
An inline math span
Fields
dollar_math: boolWhether this is dollar math (
$or$$).falseindicates it is code mathdisplay_math: boolWhether this is display math (using
$$)literal: StringThe literal contents of the math 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 NodeMath
fn new(literal: impl Into<String>, display_math: bool) -> SelfCreate a new
NodeMathwith the given literal content and displayness.
Trait Implementations
impl Clone for NodeMath
fn clone(&self) -> Self
impl Debug for NodeMath
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeMath
fn default() -> Self
impl Eq for NodeMath
impl PartialEq for NodeMath
fn eq(&self, other: &Self) -> bool