pub enum TextLeadingDistribution {
Even,
Proportional,
}Variants§
Even
Distribute extra leading evenly above and below the text box (“half-leading”).
Proportional
Distribute extra leading proportionally by ascent/descent.
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
Source§impl Default for TextLeadingDistribution
impl Default for TextLeadingDistribution
Source§fn default() -> TextLeadingDistribution
fn default() -> TextLeadingDistribution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextLeadingDistribution
impl<'de> Deserialize<'de> for TextLeadingDistribution
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
impl Eq for TextLeadingDistribution
Source§impl Hash for TextLeadingDistribution
impl Hash for TextLeadingDistribution
Source§impl PartialEq for TextLeadingDistribution
impl PartialEq for TextLeadingDistribution
Source§fn eq(&self, other: &TextLeadingDistribution) -> bool
fn eq(&self, other: &TextLeadingDistribution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextLeadingDistribution
impl Serialize 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