pub struct MathPicture {
pub svg: String,
pub width: f64,
pub height: f64,
pub depth: f64,
}Expand description
A typeset formula: the picture and where its baseline is.
Fields§
§svg: StringA standalone SVG document. Its viewBox, width, and height are in
pixels at the size the formula was typeset at — width * size by
(height + depth) * size — so a frontend that draws it at its intrinsic
size lands the glyphs at the font size it asked for.
width: f64The advance width of the formula, in em.
height: f64How far the formula rises above its baseline, in em. The baseline of the surrounding text should pass through the picture this far from its top.
depth: f64How far the formula reaches below its baseline, in em.
Implementations§
Trait Implementations§
Source§impl Clone for MathPicture
impl Clone for MathPicture
Source§impl Debug for MathPicture
impl Debug for MathPicture
Source§impl PartialEq for MathPicture
impl PartialEq for MathPicture
impl StructuralPartialEq for MathPicture
Auto Trait Implementations§
impl Freeze for MathPicture
impl RefUnwindSafe for MathPicture
impl Send for MathPicture
impl Sync for MathPicture
impl Unpin for MathPicture
impl UnsafeUnpin for MathPicture
impl UnwindSafe for MathPicture
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