Struct font_kit::loader::FallbackFont
source · pub struct FallbackFont<Font> {
pub font: Font,
pub scale: f32,
}
Expand description
A single font record for a fallback query result.
Fields§
§font: Font
The font.
scale: f32
A scale factor that should be applied to the fallback font.
Trait Implementations§
Auto Trait Implementations§
impl<Font> Freeze for FallbackFont<Font>where
Font: Freeze,
impl<Font> RefUnwindSafe for FallbackFont<Font>where
Font: RefUnwindSafe,
impl<Font> Send for FallbackFont<Font>where
Font: Send,
impl<Font> Sync for FallbackFont<Font>where
Font: Sync,
impl<Font> Unpin for FallbackFont<Font>where
Font: Unpin,
impl<Font> UnwindSafe for FallbackFont<Font>where
Font: UnwindSafe,
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