pub struct ParseNodeIncludegraphics {
pub mode: Mode,
pub loc: Option<SourceLocation>,
pub alt: String,
pub width: MeasurementOwned,
pub height: MeasurementOwned,
pub total_height: MeasurementOwned,
pub src: String,
}
Expand description
Represents included graphics/images within mathematical expressions.
This struct handles the inclusion of external images or graphics that are part of mathematical content.
§Fields
mode
- The parsing mode (Mode::Math
orMode::Text
)loc
- Optional source location for error reportingalt
- Alternative text for accessibilitywidth
- Image width (MeasurementOwned
)height
- Image height (MeasurementOwned
)total_height
- Total height including depthsrc
- Image source path/URL
§LaTeX Correspondence
Corresponds to LaTeX include graphics commands:
\includegraphics[width=5em]{diagram.png}
\includegraphics[height=3em]{figure.jpg}
§Usage
Includegraphics nodes allow embedding diagrams, plots, and other visual elements within mathematical expressions.
Fields§
§mode: Mode
The parsing mode (Mode::Math
or Mode::Text
)
loc: Option<SourceLocation>
Optional source location for error reporting
alt: String
Alternative text for accessibility
width: MeasurementOwned
Image width (MeasurementOwned
)
height: MeasurementOwned
Image height (MeasurementOwned
)
total_height: MeasurementOwned
Total height including depth
src: String
Image source path/URL
Trait Implementations§
Source§impl Clone for ParseNodeIncludegraphics
impl Clone for ParseNodeIncludegraphics
Source§fn clone(&self) -> ParseNodeIncludegraphics
fn clone(&self) -> ParseNodeIncludegraphics
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 ParseNodeIncludegraphics
impl Debug for ParseNodeIncludegraphics
Source§impl PartialEq for ParseNodeIncludegraphics
impl PartialEq for ParseNodeIncludegraphics
impl StructuralPartialEq for ParseNodeIncludegraphics
Auto Trait Implementations§
impl Freeze for ParseNodeIncludegraphics
impl RefUnwindSafe for ParseNodeIncludegraphics
impl Send for ParseNodeIncludegraphics
impl Sync for ParseNodeIncludegraphics
impl Unpin for ParseNodeIncludegraphics
impl UnwindSafe for ParseNodeIncludegraphics
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