pub struct ParseNodeHbox {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub body: Vec<AnyParseNode>,
}
Expand description
Represents horizontal boxes for grouping mathematical content.
This struct handles horizontal grouping of mathematical expressions that should be treated as a single unit for layout purposes.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingbody
- The expressions contained in the horizontal box
§LaTeX Correspondence
Corresponds to LaTeX horizontal box commands:
\hbox{ab} % Horizontal box
\mbox{xy} % Math box
§Usage
Hbox nodes control horizontal spacing and grouping of mathematical elements, ensuring they are treated as a single layout unit.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
body: Vec<AnyParseNode>
The expressions contained in the horizontal box
Trait Implementations§
Source§impl Clone for ParseNodeHbox
impl Clone for ParseNodeHbox
Source§fn clone(&self) -> ParseNodeHbox
fn clone(&self) -> ParseNodeHbox
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 ParseNodeHbox
impl Debug for ParseNodeHbox
Source§impl PartialEq for ParseNodeHbox
impl PartialEq for ParseNodeHbox
impl StructuralPartialEq for ParseNodeHbox
Auto Trait Implementations§
impl Freeze for ParseNodeHbox
impl RefUnwindSafe for ParseNodeHbox
impl Send for ParseNodeHbox
impl Sync for ParseNodeHbox
impl Unpin for ParseNodeHbox
impl UnwindSafe for ParseNodeHbox
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