pub struct FontStyle(/* private fields */);
Implementations§
Source§impl FontStyle
impl FontStyle
pub fn new(weight: Weight, width: Width, slant: Slant) -> Self
pub fn weight(self) -> Weight
pub fn width(self) -> Width
pub fn slant(self) -> Slant
pub fn normal() -> FontStyle
pub fn bold() -> FontStyle
pub fn italic() -> FontStyle
pub fn bold_italic() -> FontStyle
Trait Implementations§
impl Copy for FontStyle
Auto Trait Implementations§
impl Freeze for FontStyle
impl RefUnwindSafe for FontStyle
impl Send for FontStyle
impl Sync for FontStyle
impl Unpin for FontStyle
impl UnwindSafe for FontStyle
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