pub struct ParseNodeTextOrd {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub text: String,
}
Expand description
Represents ordinary text symbols within mathematical expressions.
This struct handles text characters that appear in math mode but don’t have mathematical symbol properties.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingtext
- The text content
§Usage
TextOrd nodes are used for text characters in mathematical contexts, ensuring proper font and spacing treatment.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
text: String
The text content
Trait Implementations§
Source§impl Clone for ParseNodeTextOrd
impl Clone for ParseNodeTextOrd
Source§fn clone(&self) -> ParseNodeTextOrd
fn clone(&self) -> ParseNodeTextOrd
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 ParseNodeTextOrd
impl Debug for ParseNodeTextOrd
Source§impl PartialEq for ParseNodeTextOrd
impl PartialEq for ParseNodeTextOrd
impl Eq for ParseNodeTextOrd
impl StructuralPartialEq for ParseNodeTextOrd
Auto Trait Implementations§
impl Freeze for ParseNodeTextOrd
impl RefUnwindSafe for ParseNodeTextOrd
impl Send for ParseNodeTextOrd
impl Sync for ParseNodeTextOrd
impl Unpin for ParseNodeTextOrd
impl UnwindSafe for ParseNodeTextOrd
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