pub struct LineSpacing {
pub leading: f32,
pub line_height_multiplier: f32,
}Expand description
Line spacing configuration.
The effective line height is computed as
font_ascent + font_descent + line_gap (the font’s natural line height)
multiplied by line_height_multiplier, plus leading extra pixels.
Fields§
§leading: f32Extra leading added between baselines, in pixels.
line_height_multiplier: f32Multiplier applied to the natural font line height (1.0 = single).
Implementations§
Trait Implementations§
Source§impl Clone for LineSpacing
impl Clone for LineSpacing
Source§fn clone(&self) -> LineSpacing
fn clone(&self) -> LineSpacing
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 moreSource§impl Debug for LineSpacing
impl Debug for LineSpacing
Source§impl Default for LineSpacing
impl Default for LineSpacing
Source§impl PartialEq for LineSpacing
impl PartialEq for LineSpacing
Source§fn eq(&self, other: &LineSpacing) -> bool
fn eq(&self, other: &LineSpacing) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LineSpacing
impl StructuralPartialEq for LineSpacing
Auto Trait Implementations§
impl Freeze for LineSpacing
impl RefUnwindSafe for LineSpacing
impl Send for LineSpacing
impl Sync for LineSpacing
impl Unpin for LineSpacing
impl UnsafeUnpin for LineSpacing
impl UnwindSafe for LineSpacing
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