pub struct ParseNodeHtml {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub attributes: KeyMap<String, String>,
pub body: Vec<AnyParseNode>,
}
Expand description
Represents embedded HTML content within mathematical expressions.
This struct handles raw HTML that needs to be included in the rendered mathematical output.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingattributes
- HTML attributes as key-value pairsbody
- The HTML content as parse nodes
§Usage
HTML nodes allow embedding custom HTML elements within mathematical expressions for advanced formatting or interactivity.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
attributes: KeyMap<String, String>
HTML attributes as key-value pairs
body: Vec<AnyParseNode>
The HTML content as parse nodes
Trait Implementations§
Source§impl Clone for ParseNodeHtml
impl Clone for ParseNodeHtml
Source§fn clone(&self) -> ParseNodeHtml
fn clone(&self) -> ParseNodeHtml
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 ParseNodeHtml
impl Debug for ParseNodeHtml
Source§impl PartialEq for ParseNodeHtml
impl PartialEq for ParseNodeHtml
impl StructuralPartialEq for ParseNodeHtml
Auto Trait Implementations§
impl Freeze for ParseNodeHtml
impl RefUnwindSafe for ParseNodeHtml
impl Send for ParseNodeHtml
impl Sync for ParseNodeHtml
impl Unpin for ParseNodeHtml
impl UnwindSafe for ParseNodeHtml
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