#[repr(C)]pub enum StyleFontWeight {
Lighter = 0,
W100 = 1,
W200 = 2,
W300 = 3,
Normal = 4,
W500 = 5,
W600 = 6,
Bold = 7,
W800 = 8,
W900 = 9,
Bolder = 10,
}Expand description
Represents the font-weight property.
Variants§
Lighter = 0
W100 = 1
W200 = 2
W300 = 3
Normal = 4
W500 = 5
W600 = 6
Bold = 7
W800 = 8
W900 = 9
Bolder = 10
Implementations§
Source§impl StyleFontWeight
impl StyleFontWeight
Sourcepub const fn to_fc_weight(self) -> i32
pub const fn to_fc_weight(self) -> i32
Convert to fontconfig weight value for font selection
Trait Implementations§
Source§impl Clone for StyleFontWeight
impl Clone for StyleFontWeight
Source§fn clone(&self) -> StyleFontWeight
fn clone(&self) -> StyleFontWeight
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 StyleFontWeight
impl Debug for StyleFontWeight
Source§impl Default for StyleFontWeight
impl Default for StyleFontWeight
Source§impl FormatAsRustCode for StyleFontWeight
impl FormatAsRustCode for StyleFontWeight
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl Hash for StyleFontWeight
impl Hash for StyleFontWeight
Source§impl Ord for StyleFontWeight
impl Ord for StyleFontWeight
Source§fn cmp(&self, other: &StyleFontWeight) -> Ordering
fn cmp(&self, other: &StyleFontWeight) -> 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 StyleFontWeight
impl PartialEq for StyleFontWeight
Source§impl PartialOrd for StyleFontWeight
impl PartialOrd for StyleFontWeight
Source§impl PrintAsCssValue for StyleFontWeight
impl PrintAsCssValue for StyleFontWeight
fn print_as_css_value(&self) -> String
impl Copy for StyleFontWeight
impl Eq for StyleFontWeight
impl StructuralPartialEq for StyleFontWeight
Auto Trait Implementations§
impl Freeze for StyleFontWeight
impl RefUnwindSafe for StyleFontWeight
impl Send for StyleFontWeight
impl Sync for StyleFontWeight
impl Unpin for StyleFontWeight
impl UnwindSafe for StyleFontWeight
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