pub enum FontSource {
Blob(FontBlob),
TableFunction(FontTableFunction),
}Expand description
Source for font data.
Variants§
Blob(FontBlob)
A nice flat buffer.
TableFunction(FontTableFunction)
Lazy loader with per-table data provided by a function.
Trait Implementations§
Source§impl Clone for FontSource
impl Clone for FontSource
Source§fn clone(&self) -> FontSource
fn clone(&self) -> FontSource
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 moreSource§impl From<FontTableFunction> for FontSource
impl From<FontTableFunction> for FontSource
Source§fn from(value: FontTableFunction) -> Self
fn from(value: FontTableFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FontSource
impl !RefUnwindSafe for FontSource
impl Send for FontSource
impl Sync for FontSource
impl Unpin for FontSource
impl UnsafeUnpin for FontSource
impl !UnwindSafe for FontSource
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