pub enum Font {
BuiltinFont(BuiltinFont),
ExternalFont(ExternalFont),
}
Expand description
The font
Variants§
BuiltinFont(BuiltinFont)
Represents one of the 14 built-in fonts (Arial, Helvetica, etc.)
ExternalFont(ExternalFont)
Represents a font loaded from an external file
Trait Implementations§
source§impl PartialEq for Font
impl PartialEq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
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