pub struct ParseNodeHref {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub href: String,
pub body: Vec<AnyParseNode>,
}
Expand description
Represents hyperlink references within mathematical expressions.
This struct handles clickable links in mathematical content, allowing expressions to link to external resources or references.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportinghref
- The hyperlink URLbody
- The linked mathematical expression
§LaTeX Correspondence
Corresponds to LaTeX hyperlink commands:
\href{https://example.com}{x}
\url{https://example.com}
§Usage
Href nodes enable interactive mathematical documents with embedded navigation and reference links.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
href: String
The hyperlink URL
body: Vec<AnyParseNode>
The linked mathematical expression
Trait Implementations§
Source§impl Clone for ParseNodeHref
impl Clone for ParseNodeHref
Source§fn clone(&self) -> ParseNodeHref
fn clone(&self) -> ParseNodeHref
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 ParseNodeHref
impl Debug for ParseNodeHref
Source§impl PartialEq for ParseNodeHref
impl PartialEq for ParseNodeHref
impl StructuralPartialEq for ParseNodeHref
Auto Trait Implementations§
impl Freeze for ParseNodeHref
impl RefUnwindSafe for ParseNodeHref
impl Send for ParseNodeHref
impl Sync for ParseNodeHref
impl Unpin for ParseNodeHref
impl UnwindSafe for ParseNodeHref
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