pub struct ParseNodeDelimsizing {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub size: u8,
pub mclass: DomType,
pub delim: String,
}
Expand description
Represents delimiter sizing for mathematical symbols.
This struct handles the sizing of delimiters (parentheses, brackets, etc.) to properly enclose mathematical expressions of varying heights.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingsize
- The size level (1-4, where 4 is largest)mclass
- The math class (“mopen”, “mclose”, “mrel”, “mord”)delim
- The delimiter symbol
§LaTeX Correspondence
Corresponds to LaTeX delimiter sizing:
\big( % Size 2
\Big[ % Size 3
\bigg\{ % Size 4
\Bigg\langle % Size 5
§Usage
Delimsizing nodes ensure delimiters scale appropriately to contain their enclosed mathematical content.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
size: u8
The size level (1-4, where 4 is largest)
mclass: DomType
The math class (“mopen”, “mclose”, “mrel”, “mord”)
delim: String
The delimiter symbol
Trait Implementations§
Source§impl Clone for ParseNodeDelimsizing
impl Clone for ParseNodeDelimsizing
Source§fn clone(&self) -> ParseNodeDelimsizing
fn clone(&self) -> ParseNodeDelimsizing
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 ParseNodeDelimsizing
impl Debug for ParseNodeDelimsizing
Source§impl PartialEq for ParseNodeDelimsizing
impl PartialEq for ParseNodeDelimsizing
impl Eq for ParseNodeDelimsizing
impl StructuralPartialEq for ParseNodeDelimsizing
Auto Trait Implementations§
impl Freeze for ParseNodeDelimsizing
impl RefUnwindSafe for ParseNodeDelimsizing
impl Send for ParseNodeDelimsizing
impl Sync for ParseNodeDelimsizing
impl Unpin for ParseNodeDelimsizing
impl UnwindSafe for ParseNodeDelimsizing
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