pub struct ParseNodeMiddle {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub delim: String,
}
Expand description
Represents middle delimiters in mathematical expressions.
This struct handles delimiters that appear in the middle of expressions, such as separators in continued fractions or special punctuation.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingdelim
- The delimiter symbol
§LaTeX Correspondence
Corresponds to LaTeX middle delimiters:
\middle|
\middle.
§Usage
Middle nodes handle delimiters that separate parts of mathematical expressions without being part of left-right pairs.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
delim: String
The delimiter symbol
Trait Implementations§
Source§impl Clone for ParseNodeMiddle
impl Clone for ParseNodeMiddle
Source§fn clone(&self) -> ParseNodeMiddle
fn clone(&self) -> ParseNodeMiddle
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 ParseNodeMiddle
impl Debug for ParseNodeMiddle
Source§impl PartialEq for ParseNodeMiddle
impl PartialEq for ParseNodeMiddle
impl Eq for ParseNodeMiddle
impl StructuralPartialEq for ParseNodeMiddle
Auto Trait Implementations§
impl Freeze for ParseNodeMiddle
impl RefUnwindSafe for ParseNodeMiddle
impl Send for ParseNodeMiddle
impl Sync for ParseNodeMiddle
impl Unpin for ParseNodeMiddle
impl UnwindSafe for ParseNodeMiddle
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