pub struct ParseNodeRule {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub shift: Option<MeasurementOwned>,
pub width: MeasurementOwned,
pub height: MeasurementOwned,
}
Expand description
Represents horizontal or vertical rules in mathematical expressions.
This struct handles the creation of straight lines for various mathematical notation purposes.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingshift
- Optional vertical shift of the rulewidth
- The width of the rule (MeasurementOwned
)height
- The height/thickness of the rule (MeasurementOwned
)
§LaTeX Correspondence
Corresponds to LaTeX rule command:
\rule{2em}{0.1em}
§Usage
Rule nodes create horizontal or vertical lines for mathematical notation, such as fraction bars or special symbols.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
shift: Option<MeasurementOwned>
Optional vertical shift of the rule
width: MeasurementOwned
The width of the rule (MeasurementOwned
)
height: MeasurementOwned
The height/thickness of the rule (MeasurementOwned
)
Trait Implementations§
Source§impl Clone for ParseNodeRule
impl Clone for ParseNodeRule
Source§fn clone(&self) -> ParseNodeRule
fn clone(&self) -> ParseNodeRule
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 ParseNodeRule
impl Debug for ParseNodeRule
Source§impl PartialEq for ParseNodeRule
impl PartialEq for ParseNodeRule
impl StructuralPartialEq for ParseNodeRule
Auto Trait Implementations§
impl Freeze for ParseNodeRule
impl RefUnwindSafe for ParseNodeRule
impl Send for ParseNodeRule
impl Sync for ParseNodeRule
impl Unpin for ParseNodeRule
impl UnwindSafe for ParseNodeRule
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