pub struct ParseNodeMclass {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub mclass: DomType,
pub body: Vec<AnyParseNode>,
pub is_character_box: bool,
}
Expand description
Represents math class specifications for mathematical elements.
This struct handles the classification of mathematical symbols for proper spacing and rendering behavior.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingmclass
- The math class (“mord”, “mbin”, “mrel”, etc.)body
- The mathematical expressionsis_character_box
- Whether this represents a single character box
§Usage
Mclass nodes control the spacing and positioning behavior of mathematical elements according to their semantic classification.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
mclass: DomType
The math class (“mord”, “mbin”, “mrel”, etc.)
body: Vec<AnyParseNode>
The mathematical expressions
is_character_box: bool
Whether this represents a single character box
Trait Implementations§
Source§impl Clone for ParseNodeMclass
impl Clone for ParseNodeMclass
Source§fn clone(&self) -> ParseNodeMclass
fn clone(&self) -> ParseNodeMclass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseNodeMclass
impl Debug for ParseNodeMclass
Source§impl PartialEq for ParseNodeMclass
impl PartialEq for ParseNodeMclass
impl StructuralPartialEq for ParseNodeMclass
Auto Trait Implementations§
impl Freeze for ParseNodeMclass
impl RefUnwindSafe for ParseNodeMclass
impl Send for ParseNodeMclass
impl Sync for ParseNodeMclass
impl Unpin for ParseNodeMclass
impl UnwindSafe for ParseNodeMclass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more