pub struct Font {
pub size: FontSize,
pub family: FontFamily,
}
Expand description
Options for how a text object should be formatted.
Fields§
§size: FontSize
The size of the font.
family: FontFamily
The font family of the font.
Implementations§
Trait Implementations§
impl Copy for Font
impl Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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