pub struct ParseNodeAccentToken {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub text: String,
}
Expand description
Represents accent symbols used for diacritical marks.
This struct handles the symbol portion of accent commands, which modify the appearance of base characters.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingtext
- The accent symbol
§LaTeX Correspondence
Corresponds to accent symbols:
\hat{x} % ^
\bar{y} % -
\tilde{z} % ~
§Usage
Accent tokens are combined with base characters to create accented symbols in mathematical notation.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
text: String
The accent symbol
Trait Implementations§
Source§impl Clone for ParseNodeAccentToken
impl Clone for ParseNodeAccentToken
Source§fn clone(&self) -> ParseNodeAccentToken
fn clone(&self) -> ParseNodeAccentToken
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 ParseNodeAccentToken
impl Debug for ParseNodeAccentToken
Source§impl PartialEq for ParseNodeAccentToken
impl PartialEq for ParseNodeAccentToken
impl Eq for ParseNodeAccentToken
impl StructuralPartialEq for ParseNodeAccentToken
Auto Trait Implementations§
impl Freeze for ParseNodeAccentToken
impl RefUnwindSafe for ParseNodeAccentToken
impl Send for ParseNodeAccentToken
impl Sync for ParseNodeAccentToken
impl Unpin for ParseNodeAccentToken
impl UnwindSafe for ParseNodeAccentToken
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