pub struct FontFile {
pub path: String,
pub weight: FontWeight,
pub style: FontStyle,
}Fields§
§path: String§weight: FontWeight§style: FontStyleImplementations§
Source§impl FontFile
impl FontFile
pub fn new(path: impl Into<String>) -> Self
pub fn with_weight(self, weight: FontWeight) -> Self
pub fn with_style(self, style: FontStyle) -> Self
Trait Implementations§
impl Eq for FontFile
impl StructuralPartialEq for FontFile
Auto Trait Implementations§
impl Freeze for FontFile
impl RefUnwindSafe for FontFile
impl Send for FontFile
impl Sync for FontFile
impl Unpin for FontFile
impl UnsafeUnpin for FontFile
impl UnwindSafe for FontFile
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