Enum FontWeight
#[repr(i32)]pub enum FontWeight {
Thin = 0,
ExtraLight = 1,
Light = 2,
Normal = 3,
Medium = 4,
SemiBold = 5,
Bold = 6,
ExtraBold = 7,
Black = 8,
}Expand description
Variants§
Thin = 0
Specifies the font weight Thin.
ExtraLight = 1
Specifies the font weight ExtraLight.
Light = 2
Specifies the font weight %Light.
Normal = 3
Specifies the font weight Normal.
Medium = 4
Specifies the font weight Medium.
SemiBold = 5
Specifies the font weight SemiBold.
Bold = 6
Specifies the font weight Bold.
ExtraBold = 7
Specifies the font weight ExtraBold.
Black = 8
Specifies the font weight Black.
Implementations§
§impl FontWeight
impl FontWeight
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> FontWeight
Trait Implementations§
§impl Clone for FontWeight
impl Clone for FontWeight
§fn clone(&self) -> FontWeight
fn clone(&self) -> FontWeight
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 more§impl Debug for FontWeight
impl Debug for FontWeight
§impl Display for FontWeight
impl Display for FontWeight
§impl PartialEq for FontWeight
impl PartialEq for FontWeight
§impl VariantConstraint for FontWeight
impl VariantConstraint for FontWeight
§type DataArg<'a> = FontWeight
type DataArg<'a> = FontWeight
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = FontWeight
type RetArg = FontWeight
§fn as_arg(&self) -> <FontWeight as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <FontWeight as VariantConstraint>::DataArg<'_>
impl Copy for FontWeight
impl Eq for FontWeight
impl PropertyTypeConstraint for FontWeight
impl StructuralPartialEq 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