pub struct ParseNodeSize {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub value: MeasurementOwned,
pub is_blank: bool,
}
Expand description
Represents size specifications for spacing or dimensions in mathematical expressions.
This struct handles explicit size measurements used for spacing, rules, or other dimensional elements in mathematical typesetting.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingvalue
- The size measurement (MeasurementOwned
)is_blank
- Whether this represents a blank/zero size
§Usage
Size nodes control the dimensions of various elements like rules, spacing, and other measurable components in mathematical layouts.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
value: MeasurementOwned
The size measurement (MeasurementOwned
)
is_blank: bool
Whether this represents a blank/zero size
Trait Implementations§
Source§impl Clone for ParseNodeSize
impl Clone for ParseNodeSize
Source§fn clone(&self) -> ParseNodeSize
fn clone(&self) -> ParseNodeSize
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 ParseNodeSize
impl Debug for ParseNodeSize
Source§impl PartialEq for ParseNodeSize
impl PartialEq for ParseNodeSize
impl StructuralPartialEq for ParseNodeSize
Auto Trait Implementations§
impl Freeze for ParseNodeSize
impl RefUnwindSafe for ParseNodeSize
impl Send for ParseNodeSize
impl Sync for ParseNodeSize
impl Unpin for ParseNodeSize
impl UnwindSafe for ParseNodeSize
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