pub struct ParseNodeRaw {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub string: String,
}
Expand description
Represents raw, unprocessed content in mathematical expressions.
This struct contains literal text or content that should be passed through without further mathematical processing or rendering.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingstring
- The raw string content
§Usage
Used for content that needs to be preserved exactly as-is, such as literal text within math mode or special formatting commands.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
string: String
The raw string content
Trait Implementations§
Source§impl Clone for ParseNodeRaw
impl Clone for ParseNodeRaw
Source§fn clone(&self) -> ParseNodeRaw
fn clone(&self) -> ParseNodeRaw
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 ParseNodeRaw
impl Debug for ParseNodeRaw
Source§impl PartialEq for ParseNodeRaw
impl PartialEq for ParseNodeRaw
impl Eq for ParseNodeRaw
impl StructuralPartialEq for ParseNodeRaw
Auto Trait Implementations§
impl Freeze for ParseNodeRaw
impl RefUnwindSafe for ParseNodeRaw
impl Send for ParseNodeRaw
impl Sync for ParseNodeRaw
impl Unpin for ParseNodeRaw
impl UnwindSafe for ParseNodeRaw
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