pub struct UnderlineMetrics {
pub cell_width: f32,
pub underline_y: f32,
pub thickness: f32,
pub baseline: f32,
}Expand description
Renderer-derived metrics for one cell, cell-local coordinates
(see module docs). All f32; the emitters are total pure
functions over whatever values arrive — they mirror degenerate
inputs (zero/negative sizes) into degenerate geometry rather than
clamping, so the consumer’s L1 byte-determinism ladder holds.
Fields§
§cell_width: f32Horizontal extent of the cell.
underline_y: f32Top edge of the (single) underline stroke, from cell top.
thickness: f32Stroke thickness.
baseline: f32Baseline y, from cell top. Feeds the curly amplitude: the baseline→underline gap is the vertical room the wave owns.
Trait Implementations§
Source§impl Clone for UnderlineMetrics
impl Clone for UnderlineMetrics
Source§fn clone(&self) -> UnderlineMetrics
fn clone(&self) -> UnderlineMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnderlineMetrics
Source§impl Debug for UnderlineMetrics
impl Debug for UnderlineMetrics
Source§impl<'de> Deserialize<'de> for UnderlineMetrics
impl<'de> Deserialize<'de> for UnderlineMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UnderlineMetrics
impl PartialEq for UnderlineMetrics
Source§fn eq(&self, other: &UnderlineMetrics) -> bool
fn eq(&self, other: &UnderlineMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UnderlineMetrics
impl Serialize for UnderlineMetrics
impl StructuralPartialEq for UnderlineMetrics
Auto Trait Implementations§
impl Freeze for UnderlineMetrics
impl RefUnwindSafe for UnderlineMetrics
impl Send for UnderlineMetrics
impl Sync for UnderlineMetrics
impl Unpin for UnderlineMetrics
impl UnsafeUnpin for UnderlineMetrics
impl UnwindSafe for UnderlineMetrics
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