pub struct ParseNodeUnderline {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub body: Box<AnyParseNode>,
}
Expand description
Represents underlines below mathematical expressions.
This struct handles horizontal lines drawn below mathematical content for emphasis or special notation.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingbody
- The expression being underlined
§LaTeX Correspondence
Corresponds to LaTeX underline command:
\underline{ABC}
§Usage
Underline nodes provide visual emphasis for mathematical expressions, commonly used for highlighting or special notation.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
body: Box<AnyParseNode>
The expression being underlined
Trait Implementations§
Source§impl Clone for ParseNodeUnderline
impl Clone for ParseNodeUnderline
Source§fn clone(&self) -> ParseNodeUnderline
fn clone(&self) -> ParseNodeUnderline
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 ParseNodeUnderline
impl Debug for ParseNodeUnderline
Source§impl PartialEq for ParseNodeUnderline
impl PartialEq for ParseNodeUnderline
impl StructuralPartialEq for ParseNodeUnderline
Auto Trait Implementations§
impl Freeze for ParseNodeUnderline
impl RefUnwindSafe for ParseNodeUnderline
impl Send for ParseNodeUnderline
impl Sync for ParseNodeUnderline
impl Unpin for ParseNodeUnderline
impl UnwindSafe for ParseNodeUnderline
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