pub struct ParseNodeSpacing {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub text: String,
}
Expand description
Represents explicit spacing elements in mathematical expressions.
This struct handles manually inserted spacing that affects the layout and positioning of mathematical elements.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingtext
- The spacing command or symbol
§LaTeX Correspondence
Corresponds to LaTeX spacing commands:
\, % Thin space
\: % Medium space
\; % Thick space
\! % Negative thin space
§Usage
Spacing nodes allow fine control over the horizontal spacing between mathematical elements for proper visual appearance.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
text: String
The spacing command or symbol
Trait Implementations§
Source§impl Clone for ParseNodeSpacing
impl Clone for ParseNodeSpacing
Source§fn clone(&self) -> ParseNodeSpacing
fn clone(&self) -> ParseNodeSpacing
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 ParseNodeSpacing
impl Debug for ParseNodeSpacing
Source§impl PartialEq for ParseNodeSpacing
impl PartialEq for ParseNodeSpacing
impl Eq for ParseNodeSpacing
impl StructuralPartialEq for ParseNodeSpacing
Auto Trait Implementations§
impl Freeze for ParseNodeSpacing
impl RefUnwindSafe for ParseNodeSpacing
impl Send for ParseNodeSpacing
impl Sync for ParseNodeSpacing
impl Unpin for ParseNodeSpacing
impl UnwindSafe for ParseNodeSpacing
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