pub enum Weights {
Static(f32),
Axis(f32, f32),
}Expand description
The weights one font file has.
Variants§
Static(f32)
A static font: its one weight.
Axis(f32, f32)
A variable font: its weight axis, from and to.
Implementations§
Trait Implementations§
impl Copy for Weights
impl StructuralPartialEq for Weights
Auto Trait Implementations§
impl Freeze for Weights
impl RefUnwindSafe for Weights
impl Send for Weights
impl Sync for Weights
impl Unpin for Weights
impl UnsafeUnpin for Weights
impl UnwindSafe for Weights
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