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: bool

Whether this is dollar math ($ or $$). false indicates it is code math

display_math: bool

Whether this is display math (using $$)

literal: String

The 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) -> Self

Create a new NodeMath with 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

impl StructuralPartialEq for NodeMath

Auto Trait Implementations

impl Freeze for NodeMath

impl RefUnwindSafe for NodeMath

impl Send for NodeMath

impl Sync for NodeMath

impl Unpin for NodeMath

impl UnsafeUnpin for NodeMath

impl UnwindSafe for NodeMath

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for NodeMath where T: SimdFrom<F, S>, S: Simd,

impl<T> Any for NodeMath where T: 'static + ?Sized,

impl<T> Borrow<T> for NodeMath where T: ?Sized,

impl<T> BorrowMut<T> for NodeMath where T: ?Sized,

impl<T> CloneToUninit for NodeMath where T: Clone,

impl<T> From<T> for NodeMath

impl<T> ToOwned for NodeMath where T: Clone,

impl<T, S> SimdFrom<T, S> for NodeMath where S: Simd,

impl<T, U> Into<U> for NodeMath where U: From<T>,

impl<T, U> TryFrom<U> for NodeMath where U: Into<T>,

impl<T, U> TryInto<U> for NodeMath where U: TryFrom<T>,