pub struct ParseNodeKern {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub dimension: MeasurementOwned,
}
Expand description
Represents explicit kerning/spacing adjustments in mathematical expressions.
This struct handles manual spacing adjustments between mathematical elements for precise layout control.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingdimension
- The spacing amount (MeasurementOwned
)
§LaTeX Correspondence
Corresponds to LaTeX kerning commands:
\kern 0.5em % Positive kerning
\mkern 3mu % Math unit kerning
§Usage
Kern nodes provide fine-grained control over spacing in mathematical expressions for typographical precision.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
dimension: MeasurementOwned
The spacing amount (MeasurementOwned
)
Trait Implementations§
Source§impl Clone for ParseNodeKern
impl Clone for ParseNodeKern
Source§fn clone(&self) -> ParseNodeKern
fn clone(&self) -> ParseNodeKern
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 ParseNodeKern
impl Debug for ParseNodeKern
Source§impl PartialEq for ParseNodeKern
impl PartialEq for ParseNodeKern
impl StructuralPartialEq for ParseNodeKern
Auto Trait Implementations§
impl Freeze for ParseNodeKern
impl RefUnwindSafe for ParseNodeKern
impl Send for ParseNodeKern
impl Sync for ParseNodeKern
impl Unpin for ParseNodeKern
impl UnwindSafe for ParseNodeKern
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