pub struct ParseNodeOpToken {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub text: String,
}
Expand description
Represents operator symbols with special positioning rules.
This struct handles operator tokens that may have special rendering requirements, such as limits positioning.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingtext
- The operator symbol
§Usage
OpTokens represent operators that may need special handling for subscripts/superscripts (limits vs. regular scripts).
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
text: String
The operator symbol
Trait Implementations§
Source§impl Clone for ParseNodeOpToken
impl Clone for ParseNodeOpToken
Source§fn clone(&self) -> ParseNodeOpToken
fn clone(&self) -> ParseNodeOpToken
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 ParseNodeOpToken
impl Debug for ParseNodeOpToken
Source§impl PartialEq for ParseNodeOpToken
impl PartialEq for ParseNodeOpToken
impl Eq for ParseNodeOpToken
impl StructuralPartialEq for ParseNodeOpToken
Auto Trait Implementations§
impl Freeze for ParseNodeOpToken
impl RefUnwindSafe for ParseNodeOpToken
impl Send for ParseNodeOpToken
impl Sync for ParseNodeOpToken
impl Unpin for ParseNodeOpToken
impl UnwindSafe for ParseNodeOpToken
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