pub struct ParseNodeAccentUnder {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub label: String,
pub is_stretchy: Option<bool>,
pub is_shifty: Option<bool>,
pub base: Box<AnyParseNode>,
}
Expand description
Represents accent marks placed below mathematical expressions.
This struct handles under-accents, which are diacritical marks positioned beneath base expressions, such as underbars and undertildes.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportinglabel
- The under-accent symbolis_stretchy
- Whether the accent stretches to fit the base widthis_shifty
- Whether the accent is shifted for better positioningbase
- The expression being under-accented
§LaTeX Correspondence
Corresponds to LaTeX under-accent commands:
\underline{x} % Underline
\underbar{y} % Underbar
\utilde{z} % Undertilde
§Usage
Under-accent nodes provide visual modifications below expressions, useful for emphasis and special mathematical notation.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
label: String
The under-accent symbol
is_stretchy: Option<bool>
Whether the accent stretches to fit the base width
is_shifty: Option<bool>
Whether the accent is shifted for better positioning
base: Box<AnyParseNode>
The expression being under-accented
Trait Implementations§
Source§impl Clone for ParseNodeAccentUnder
impl Clone for ParseNodeAccentUnder
Source§fn clone(&self) -> ParseNodeAccentUnder
fn clone(&self) -> ParseNodeAccentUnder
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 ParseNodeAccentUnder
impl Debug for ParseNodeAccentUnder
Source§impl PartialEq for ParseNodeAccentUnder
impl PartialEq for ParseNodeAccentUnder
impl StructuralPartialEq for ParseNodeAccentUnder
Auto Trait Implementations§
impl Freeze for ParseNodeAccentUnder
impl RefUnwindSafe for ParseNodeAccentUnder
impl Send for ParseNodeAccentUnder
impl Sync for ParseNodeAccentUnder
impl Unpin for ParseNodeAccentUnder
impl UnwindSafe for ParseNodeAccentUnder
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