pub struct ParseNodeTag {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub body: Vec<AnyParseNode>,
pub tag: Vec<AnyParseNode>,
}
Expand description
Represents tagged equations or expressions with labels.
This struct handles equation tags, numbers, or labels that are associated with mathematical expressions, typically for referencing.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingbody
- The main mathematical expressiontag
- The tag/label expressions
§LaTeX Correspondence
Corresponds to LaTeX equation tagging:
\tag{1} E = mc^2
\begin{equation}\label{eq:energy}
E = mc^2
\end{equation}
§Usage
Tag nodes enable equation numbering and referencing in mathematical documents, allowing readers to cite specific equations.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
body: Vec<AnyParseNode>
The main mathematical expression
tag: Vec<AnyParseNode>
The tag/label expressions
Trait Implementations§
Source§impl Clone for ParseNodeTag
impl Clone for ParseNodeTag
Source§fn clone(&self) -> ParseNodeTag
fn clone(&self) -> ParseNodeTag
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 ParseNodeTag
impl Debug for ParseNodeTag
Source§impl PartialEq for ParseNodeTag
impl PartialEq for ParseNodeTag
impl StructuralPartialEq for ParseNodeTag
Auto Trait Implementations§
impl Freeze for ParseNodeTag
impl RefUnwindSafe for ParseNodeTag
impl Send for ParseNodeTag
impl Sync for ParseNodeTag
impl Unpin for ParseNodeTag
impl UnwindSafe for ParseNodeTag
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