pub struct ParseNodeSizing {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub size: usize,
pub body: Vec<AnyParseNode>,
}
Expand description
Represents size changes for mathematical expressions.
This struct handles scaling of mathematical content to different display sizes for various contexts.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingsize
- The size level/indexbody
- The expressions to be sized
§LaTeX Correspondence
Corresponds to LaTeX sizing commands:
\scriptsize x
\large y
\Huge z
§Usage
Sizing nodes control the scale of mathematical expressions for different display contexts and emphasis.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
size: usize
The size level/index
body: Vec<AnyParseNode>
The expressions to be sized
Trait Implementations§
Source§impl Clone for ParseNodeSizing
impl Clone for ParseNodeSizing
Source§fn clone(&self) -> ParseNodeSizing
fn clone(&self) -> ParseNodeSizing
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 ParseNodeSizing
impl Debug for ParseNodeSizing
Source§impl PartialEq for ParseNodeSizing
impl PartialEq for ParseNodeSizing
impl StructuralPartialEq for ParseNodeSizing
Auto Trait Implementations§
impl Freeze for ParseNodeSizing
impl RefUnwindSafe for ParseNodeSizing
impl Send for ParseNodeSizing
impl Sync for ParseNodeSizing
impl Unpin for ParseNodeSizing
impl UnwindSafe for ParseNodeSizing
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