pub struct ParseNodeUrl {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub url: String,
}
Expand description
Represents URL links in mathematical expressions.
This struct handles hyperlinks within mathematical content, allowing mathematical expressions to contain clickable links.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingurl
- The URL string
§LaTeX Correspondence
Corresponds to LaTeX hyperlink commands:
\url{https://example.com}
\href{https://example.com}{link text}
§Usage
URL nodes enable interactive mathematical documents with embedded links, useful for referencing external resources or documentation.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
url: String
The URL string
Trait Implementations§
Source§impl Clone for ParseNodeUrl
impl Clone for ParseNodeUrl
Source§fn clone(&self) -> ParseNodeUrl
fn clone(&self) -> ParseNodeUrl
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 ParseNodeUrl
impl Debug for ParseNodeUrl
Source§impl PartialEq for ParseNodeUrl
impl PartialEq for ParseNodeUrl
impl Eq for ParseNodeUrl
impl StructuralPartialEq for ParseNodeUrl
Auto Trait Implementations§
impl Freeze for ParseNodeUrl
impl RefUnwindSafe for ParseNodeUrl
impl Send for ParseNodeUrl
impl Sync for ParseNodeUrl
impl Unpin for ParseNodeUrl
impl UnwindSafe for ParseNodeUrl
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