Struct NodeMathBlock

#[non_exhaustive]
pub struct NodeMathBlock { pub fence_offset: usize, pub literal: String, pub closed: bool }

A block math span delimited by standalone $$ lines.

Fields

fence_offset: usize

The indentation level of the opening fence marker.

literal: String

The literal contents of the math block, excluding the delimiter lines.

closed: bool

Whether this math block was explicitly closed by a closing fence.

Implementations

impl NodeMathBlock

fn new(literal: impl Into<String>) -> Self

Create a new NodeMathBlock with the given literal content.

Trait Implementations

impl Clone for NodeMathBlock

fn clone(&self) -> Self

impl Debug for NodeMathBlock

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for NodeMathBlock

fn default() -> Self

impl Eq for NodeMathBlock

impl PartialEq for NodeMathBlock

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for NodeMathBlock

Auto Trait Implementations

impl Freeze for NodeMathBlock

impl RefUnwindSafe for NodeMathBlock

impl Send for NodeMathBlock

impl Sync for NodeMathBlock

impl Unpin for NodeMathBlock

impl UnsafeUnpin for NodeMathBlock

impl UnwindSafe for NodeMathBlock

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for NodeMathBlock

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

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

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

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

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