pub struct ParseNodeLap {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub alignment: LapAlignment,
pub body: Box<AnyParseNode>,
}
Expand description
Represents overlapping content (lap) in mathematical expressions.
This struct handles text or symbols that overlap other content, commonly used for annotations or special positioning.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingalignment
- The alignment for overlapping (“l”, “r”, “c”)body
- The overlapping content
§LaTeX Correspondence
Corresponds to LaTeX lap commands:
\rlap{*} % Right overlap
\llap{#} % Left overlap
\clap{^} % Center overlap
§Usage
Lap nodes enable overlapping text for annotations, superscripts, or special positioning requirements.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
alignment: LapAlignment
The alignment for overlapping (“l”, “r”, “c”)
body: Box<AnyParseNode>
The overlapping content
Trait Implementations§
Source§impl Clone for ParseNodeLap
impl Clone for ParseNodeLap
Source§fn clone(&self) -> ParseNodeLap
fn clone(&self) -> ParseNodeLap
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 ParseNodeLap
impl Debug for ParseNodeLap
Source§impl PartialEq for ParseNodeLap
impl PartialEq for ParseNodeLap
impl StructuralPartialEq for ParseNodeLap
Auto Trait Implementations§
impl Freeze for ParseNodeLap
impl RefUnwindSafe for ParseNodeLap
impl Send for ParseNodeLap
impl Sync for ParseNodeLap
impl Unpin for ParseNodeLap
impl UnwindSafe for ParseNodeLap
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