pub enum FontHandle {
Static(&'static [u8]),
Owned(Vec<u8>),
}Expand description
A bundled font, either as a static slice or owned bytes loaded at runtime.
Variants§
Static(&'static [u8])
Font data bundled into the binary via include_bytes!.
Owned(Vec<u8>)
Font data read from disk or fetched at runtime.
Implementations§
Trait Implementations§
Source§impl Clone for FontHandle
impl Clone for FontHandle
Source§fn clone(&self) -> FontHandle
fn clone(&self) -> FontHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FontHandle
impl RefUnwindSafe for FontHandle
impl Send for FontHandle
impl Sync for FontHandle
impl Unpin for FontHandle
impl UnsafeUnpin for FontHandle
impl UnwindSafe for FontHandle
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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