pub struct ParseNodeInfix {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub replace_with: String,
pub size: Option<MeasurementOwned>,
pub token: Option<Token>,
}
Expand description
Represents infix operators in mathematical expressions.
This struct handles operators that appear between operands, such as custom or extensible operators.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingreplace_with
- The replacement string for the operatorsize
- Optional size specificationtoken
- Optional associated token
§Usage
Infix nodes handle custom operators and extensible operator syntax in mathematical expressions.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
replace_with: String
The replacement string for the operator
size: Option<MeasurementOwned>
Optional size specification
token: Option<Token>
Optional associated token
Trait Implementations§
Source§impl Clone for ParseNodeInfix
impl Clone for ParseNodeInfix
Source§fn clone(&self) -> ParseNodeInfix
fn clone(&self) -> ParseNodeInfix
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 ParseNodeInfix
impl Debug for ParseNodeInfix
Source§impl PartialEq for ParseNodeInfix
impl PartialEq for ParseNodeInfix
impl StructuralPartialEq for ParseNodeInfix
Auto Trait Implementations§
impl Freeze for ParseNodeInfix
impl RefUnwindSafe for ParseNodeInfix
impl Send for ParseNodeInfix
impl Sync for ParseNodeInfix
impl Unpin for ParseNodeInfix
impl UnwindSafe for ParseNodeInfix
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