pub enum TextLeadingDistribution {
Proportional,
Even,
}Expand description
How the leading of the text is distributed over and under the text.
Variants§
Proportional
Distributes the leading of the text proportionally above and below the text, to the font’s ascent/descent ratio.
Even
Distributes the leading of the text evenly above and below the text (i.e. evenly above the font’s ascender and below the descender).
The leading can become negative when TextStyle.height is smaller than
1.0.
This is the default strategy used by CSS, known as “half-leading”.
Trait Implementations§
Source§impl Clone for TextLeadingDistribution
impl Clone for TextLeadingDistribution
Source§fn clone(&self) -> TextLeadingDistribution
fn clone(&self) -> TextLeadingDistribution
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 TextLeadingDistribution
Source§impl Debug for TextLeadingDistribution
impl Debug for TextLeadingDistribution
impl Eq for TextLeadingDistribution
Source§impl Hash for TextLeadingDistribution
impl Hash for TextLeadingDistribution
Source§impl PartialEq for TextLeadingDistribution
impl PartialEq for TextLeadingDistribution
impl StructuralPartialEq for TextLeadingDistribution
Auto Trait Implementations§
impl Freeze for TextLeadingDistribution
impl RefUnwindSafe for TextLeadingDistribution
impl Send for TextLeadingDistribution
impl Sync for TextLeadingDistribution
impl Unpin for TextLeadingDistribution
impl UnsafeUnpin for TextLeadingDistribution
impl UnwindSafe for TextLeadingDistribution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.