pub struct ParseNodeMathOrd {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub text: String,
}
Expand description
Represents ordinary mathematical symbols without special spacing rules.
This struct handles regular mathematical symbols that don’t have special spacing or positioning requirements, such as variables and digits.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingtext
- The symbol text
§LaTeX Correspondence
Corresponds to ordinary symbols in math mode:
x y z % Variables
1 2 3 % Digits
a b c % Letters
§Usage
MathOrd nodes represent the most common type of mathematical symbols, forming the basic content of expressions.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
text: String
The symbol text
Trait Implementations§
Source§impl Clone for ParseNodeMathOrd
impl Clone for ParseNodeMathOrd
Source§fn clone(&self) -> ParseNodeMathOrd
fn clone(&self) -> ParseNodeMathOrd
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 ParseNodeMathOrd
impl Debug for ParseNodeMathOrd
Source§impl PartialEq for ParseNodeMathOrd
impl PartialEq for ParseNodeMathOrd
impl Eq for ParseNodeMathOrd
impl StructuralPartialEq for ParseNodeMathOrd
Auto Trait Implementations§
impl Freeze for ParseNodeMathOrd
impl RefUnwindSafe for ParseNodeMathOrd
impl Send for ParseNodeMathOrd
impl Sync for ParseNodeMathOrd
impl Unpin for ParseNodeMathOrd
impl UnwindSafe for ParseNodeMathOrd
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