pub struct EqMetrics {
pub width: f32,
pub ascent: f32,
pub descent: f32,
}Expand description
Measured dimensions of a laid-out equation node.
This struct isn’t produced by the parser — it’s here for your convenience if you’re building a renderer and need somewhere to store measurements during the layout pass.
All values are in the same unit as your font size (typically points).
┬
│ ascent (above baseline)
───────────── baseline
│ descent (below baseline)
┴
├─────────────┤
widthFields§
§width: f32Horizontal extent of the node.
ascent: f32Distance from the baseline to the top of the node. Always non-negative.
descent: f32Distance from the baseline to the bottom of the node. Always non-negative.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EqMetrics
impl RefUnwindSafe for EqMetrics
impl Send for EqMetrics
impl Sync for EqMetrics
impl Unpin for EqMetrics
impl UnsafeUnpin for EqMetrics
impl UnwindSafe for EqMetrics
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