Struct components::ui::FontWeight
source · [−]pub struct FontWeight(pub usize);
Tuple Fields
0: usize
Implementations
sourceimpl FontWeight
impl FontWeight
pub const BOLD: FontWeight = Self::W700
pub const NORMAL: FontWeight = Self::W400
pub const VALUES: [FontWeight; 9] = [Self::W100, Self::W200, Self::W300, Self::W400, Self::W500, Self::W600, Self::W700, Self::W800, Self::W900]
pub const W100: FontWeight = FontWeight(0)
pub const W200: FontWeight = FontWeight(1)
pub const W300: FontWeight = FontWeight(2)
pub const W400: FontWeight = FontWeight(3)
pub const W500: FontWeight = FontWeight(4)
pub const W600: FontWeight = FontWeight(5)
pub const W700: FontWeight = FontWeight(6)
pub const W800: FontWeight = FontWeight(7)
pub const W900: FontWeight = FontWeight(8)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FontWeight
impl Send for FontWeight
impl Sync for FontWeight
impl Unpin for FontWeight
impl UnwindSafe for FontWeight
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.