pub enum LineHeightUnit {
Pixels,
FontSizePercent,
IntrinsicPercent,
}
Expand description
The unit of the line height value specified by the user.
Variants§
Trait Implementations§
Source§impl Clone for LineHeightUnit
impl Clone for LineHeightUnit
Source§fn clone(&self) -> LineHeightUnit
fn clone(&self) -> LineHeightUnit
Returns a duplicate of the value. Read more
1.0.0 · 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 LineHeightUnit
impl Debug for LineHeightUnit
Source§impl Default for LineHeightUnit
impl Default for LineHeightUnit
Source§fn default() -> LineHeightUnit
fn default() -> LineHeightUnit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LineHeightUnit
impl<'de> Deserialize<'de> for LineHeightUnit
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 Hash for LineHeightUnit
impl Hash for LineHeightUnit
Source§impl Ord for LineHeightUnit
impl Ord for LineHeightUnit
Source§fn cmp(&self, other: &LineHeightUnit) -> Ordering
fn cmp(&self, other: &LineHeightUnit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LineHeightUnit
impl PartialEq for LineHeightUnit
Source§impl PartialOrd for LineHeightUnit
impl PartialOrd for LineHeightUnit
Source§impl Serialize for LineHeightUnit
impl Serialize for LineHeightUnit
impl Copy for LineHeightUnit
impl Eq for LineHeightUnit
impl StructuralPartialEq for LineHeightUnit
Auto Trait Implementations§
impl Freeze for LineHeightUnit
impl RefUnwindSafe for LineHeightUnit
impl Send for LineHeightUnit
impl Sync for LineHeightUnit
impl Unpin for LineHeightUnit
impl UnwindSafe for LineHeightUnit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.