pub struct Font {
pub family: String,
pub size: Length,
pub weight: i64,
pub italic: bool,
}Expand description
A font selection expressed in logical pixels and CSS-style font weight.
Fields§
§family: String§size: Length§weight: i64§italic: boolTrait Implementations§
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Forget for Font
impl Freeze for Font
impl Move for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnsafeUnpin 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