pub struct ParseNodeHtmlMathMl {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub html: Vec<AnyParseNode>,
pub mathml: Vec<AnyParseNode>,
}
Expand description
Represents content that can be rendered in both HTML and MathML formats.
This struct handles mathematical expressions that have different representations for HTML and MathML output formats.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportinghtml
- HTML representationmathml
- MathML representation
§Usage
HtmlMathMl nodes support dual-format output for better compatibility across different rendering engines and accessibility tools.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
html: Vec<AnyParseNode>
HTML representation
mathml: Vec<AnyParseNode>
MathML representation
Trait Implementations§
Source§impl Clone for ParseNodeHtmlMathMl
impl Clone for ParseNodeHtmlMathMl
Source§fn clone(&self) -> ParseNodeHtmlMathMl
fn clone(&self) -> ParseNodeHtmlMathMl
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 ParseNodeHtmlMathMl
impl Debug for ParseNodeHtmlMathMl
Source§impl PartialEq for ParseNodeHtmlMathMl
impl PartialEq for ParseNodeHtmlMathMl
impl StructuralPartialEq for ParseNodeHtmlMathMl
Auto Trait Implementations§
impl Freeze for ParseNodeHtmlMathMl
impl RefUnwindSafe for ParseNodeHtmlMathMl
impl Send for ParseNodeHtmlMathMl
impl Sync for ParseNodeHtmlMathMl
impl Unpin for ParseNodeHtmlMathMl
impl UnwindSafe for ParseNodeHtmlMathMl
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