pub enum FontWeight {
Thin,
ExtraLight,
Light,
Normal,
Medium,
SemiBold,
Bold,
ExtraBold,
Black,
}Expand description
Describes available font weights.
Variants§
Implementations§
Source§impl FontWeight
impl FontWeight
Sourcepub fn increase(weight: FontWeight) -> FontWeight
pub fn increase(weight: FontWeight) -> FontWeight
Returns the next heavier named font weight.
Sourcepub fn decrease(weight: FontWeight) -> FontWeight
pub fn decrease(weight: FontWeight) -> FontWeight
Returns the next lighter named font weight.
Trait Implementations§
Source§impl Clone for FontWeight
impl Clone for FontWeight
Source§impl CoercionRules for FontWeight
impl CoercionRules for FontWeight
Source§impl Debug for FontWeight
impl Debug for FontWeight
Source§impl Default for FontWeight
impl Default for FontWeight
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 HelperFunctions for FontWeight
impl HelperFunctions for FontWeight
Source§fn register_all_functions()
fn register_all_functions()
Registers all helper functions for this type.
impl ImplToFromPaxAny for FontWeight
Source§impl Interpolatable for FontWeight
impl Interpolatable for FontWeight
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl PartialEq for FontWeight
impl PartialEq for FontWeight
Source§impl Serialize for FontWeight
impl Serialize for FontWeight
impl StructuralPartialEq for FontWeight
Source§impl ToPaxValue for FontWeight
impl ToPaxValue for FontWeight
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Auto Trait Implementations§
impl Freeze for FontWeight
impl RefUnwindSafe for FontWeight
impl Send for FontWeight
impl Sync for FontWeight
impl Unpin for FontWeight
impl UnsafeUnpin 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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.
Source§impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
Source§fn to_pax_any(self) -> PaxAny
fn to_pax_any(self) -> PaxAny
Converts this value into a
PaxAny.Source§fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
Attempts to recover this concrete type from a
PaxAny.