Enum mathml_latex::LaTeXNode
source · pub enum LaTeXNode<'i> {
Show 13 variants
ArticleRoot {
children: Vec<LaTeXNode<'i>>,
},
ArticleText {
text: &'i str,
},
MathRoot {
children: Vec<LaTeXNode<'i>>,
},
Row {
children: Vec<LaTeXNode<'i>>,
},
Block(LaTeXBlock<'i>),
Command(LaTeXCommand<'i>),
MathText {
text: &'i str,
},
Number {
number: &'i str,
},
Operation {
operator: &'i str,
},
Superscript {
lhs: Box<LaTeXNode<'i>>,
rhs: Box<LaTeXNode<'i>>,
},
Letter {
identifier: &'i str,
},
NewLine,
Ampersand,
}
Variants§
ArticleRoot
ArticleText
MathRoot
Row
Block(LaTeXBlock<'i>)
Command(LaTeXCommand<'i>)
MathText
Number
Operation
Superscript
Letter
NewLine
\\
Ampersand
&
Implementations§
source§impl<'i> LaTeXNode<'i>
impl<'i> LaTeXNode<'i>
sourcepub fn as_mathml(&self, context: &LaTeXEngine) -> MathML
pub fn as_mathml(&self, context: &LaTeXEngine) -> MathML
Converts the LaTeX node into a MathML node.
source§impl<'i> LaTeXNode<'i>
impl<'i> LaTeXNode<'i>
pub fn parse(input: ParseState<'i>) -> ParseResult<'_, LaTeXNode<'i>>
sourcepub fn parse_letter(input: ParseState<'i>) -> ParseResult<'_, LaTeXNode<'i>>
pub fn parse_letter(input: ParseState<'i>) -> ParseResult<'_, LaTeXNode<'i>>
a ax
Trait Implementations§
Auto Trait Implementations§
impl<'i> RefUnwindSafe for LaTeXNode<'i>
impl<'i> Send for LaTeXNode<'i>
impl<'i> Sync for LaTeXNode<'i>
impl<'i> Unpin for LaTeXNode<'i>
impl<'i> UnwindSafe for LaTeXNode<'i>
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