pub struct ParseNodeHorizBrace {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub label: String,
pub is_over: bool,
pub base: Box<AnyParseNode>,
}
Expand description
Represents horizontal braces above or below mathematical expressions.
This struct handles overbraces and underbraces that span multiple symbols with optional labels for annotation.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportinglabel
- The brace label/annotationis_over
- Whether the brace is above (true) or below (false)base
- The expression being braced
§LaTeX Correspondence
Corresponds to LaTeX brace commands:
\overbrace{abc}^{sum} % Overbrace
\underbrace{xyz}_{total} % Underbrace
§Usage
HorizBrace nodes provide visual grouping and annotation of related mathematical terms or operations.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
label: String
The brace label/annotation
is_over: bool
Whether the brace is above (true) or below (false)
base: Box<AnyParseNode>
The expression being braced
Trait Implementations§
Source§impl Clone for ParseNodeHorizBrace
impl Clone for ParseNodeHorizBrace
Source§fn clone(&self) -> ParseNodeHorizBrace
fn clone(&self) -> ParseNodeHorizBrace
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 ParseNodeHorizBrace
impl Debug for ParseNodeHorizBrace
Source§impl PartialEq for ParseNodeHorizBrace
impl PartialEq for ParseNodeHorizBrace
impl StructuralPartialEq for ParseNodeHorizBrace
Auto Trait Implementations§
impl Freeze for ParseNodeHorizBrace
impl RefUnwindSafe for ParseNodeHorizBrace
impl Send for ParseNodeHorizBrace
impl Sync for ParseNodeHorizBrace
impl Unpin for ParseNodeHorizBrace
impl UnwindSafe for ParseNodeHorizBrace
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