Struct theme2::UserFontWeight
source · pub struct UserFontWeight(pub f32);
Tuple Fields§
§0: f32
Implementations§
source§impl UserFontWeight
impl UserFontWeight
sourcepub const EXTRA_LIGHT: Self = _
pub const EXTRA_LIGHT: Self = _
Extra light weight (200).
sourcepub const EXTRA_BOLD: Self = _
pub const EXTRA_BOLD: Self = _
Extra-bold weight (800).
Trait Implementations§
source§impl Clone for UserFontWeight
impl Clone for UserFontWeight
source§fn clone(&self) -> UserFontWeight
fn clone(&self) -> UserFontWeight
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 Default for UserFontWeight
impl Default for UserFontWeight
source§fn default() -> UserFontWeight
fn default() -> UserFontWeight
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UserFontWeight
impl<'de> Deserialize<'de> for UserFontWeight
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<UserFontWeight> for FontWeight
impl From<UserFontWeight> for FontWeight
source§fn from(value: UserFontWeight) -> Self
fn from(value: UserFontWeight) -> Self
Converts to this type from the input type.
impl Copy for UserFontWeight
Auto Trait Implementations§
impl RefUnwindSafe for UserFontWeight
impl Send for UserFontWeight
impl Sync for UserFontWeight
impl Unpin for UserFontWeight
impl UnwindSafe for UserFontWeight
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