Enum pax_std::types::text::FontWeight
source · pub enum FontWeight {
Thin,
ExtraLight,
Light,
Normal,
Medium,
SemiBold,
Bold,
ExtraBold,
Black,
}
Variants§
Trait Implementations§
source§impl Clone for FontWeight
impl Clone for FontWeight
source§fn clone(&self) -> FontWeight
fn clone(&self) -> FontWeight
Returns a copy 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 FontWeight
impl Debug for FontWeight
source§impl Default for FontWeight
impl Default for FontWeight
source§fn default() -> FontWeight
fn default() -> FontWeight
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FontWeight
impl<'de> Deserialize<'de> for FontWeight
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 From<FontWeight> for FontWeightMessage
impl From<FontWeight> for FontWeightMessage
source§fn from(weight: FontWeight) -> Self
fn from(weight: FontWeight) -> Self
Converts to this type from the input type.
source§impl From<FontWeightMessage> for FontWeight
impl From<FontWeightMessage> for FontWeight
source§fn from(weight_msg: FontWeightMessage) -> Self
fn from(weight_msg: FontWeightMessage) -> Self
Converts to this type from the input type.
source§impl Interpolatable for FontWeight
impl Interpolatable for FontWeight
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl PartialEq<FontWeightMessage> for FontWeight
impl PartialEq<FontWeightMessage> for FontWeight
source§fn eq(&self, other: &FontWeightMessage) -> bool
fn eq(&self, other: &FontWeightMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FontWeight
impl Serialize for FontWeight
impl ImplToFromPaxAny for FontWeight
Auto Trait Implementations§
impl Freeze for FontWeight
impl RefUnwindSafe for FontWeight
impl Send for FontWeight
impl Sync for FontWeight
impl Unpin for FontWeight
impl UnwindSafe for FontWeight
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> CoercionRules for Twhere
T: ImplToFromPaxAny,
impl<T> CoercionRules for Twhere
T: ImplToFromPaxAny,
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.