pub struct ParseNodeRaisebox {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub dy: MeasurementOwned,
pub body: Box<AnyParseNode>,
}
Expand description
Represents raised or lowered content in mathematical expressions.
This struct handles vertical displacement of mathematical content for special positioning requirements.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingdy
- The vertical displacement amount (MeasurementOwned
)body
- The content to be displaced
§LaTeX Correspondence
Corresponds to LaTeX raisebox command:
\raisebox{0.5em}{x}
§Usage
Raisebox nodes allow precise vertical positioning of mathematical elements for special layout requirements.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
dy: MeasurementOwned
The vertical displacement amount (MeasurementOwned
)
body: Box<AnyParseNode>
The content to be displaced
Trait Implementations§
Source§impl Clone for ParseNodeRaisebox
impl Clone for ParseNodeRaisebox
Source§fn clone(&self) -> ParseNodeRaisebox
fn clone(&self) -> ParseNodeRaisebox
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 ParseNodeRaisebox
impl Debug for ParseNodeRaisebox
Source§impl PartialEq for ParseNodeRaisebox
impl PartialEq for ParseNodeRaisebox
impl StructuralPartialEq for ParseNodeRaisebox
Auto Trait Implementations§
impl Freeze for ParseNodeRaisebox
impl RefUnwindSafe for ParseNodeRaisebox
impl Send for ParseNodeRaisebox
impl Sync for ParseNodeRaisebox
impl Unpin for ParseNodeRaisebox
impl UnwindSafe for ParseNodeRaisebox
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