pub enum FontData {
Bytes(Arc<[u8]>),
Local(String),
}Expand description
What a loaded face is made of.
Variants§
Bytes(Arc<[u8]>)
The font file (TrueType or OpenType, parsed once to check it).
Local(String)
A face the host already has, by the local() name that matched.
Trait Implementations§
impl Eq for FontData
impl StructuralPartialEq for FontData
Auto Trait Implementations§
impl Forget for FontData
impl Freeze for FontData
impl Move for FontData
impl RefUnwindSafe for FontData
impl Send for FontData
impl Sync for FontData
impl Unpin for FontData
impl UnsafeUnpin for FontDatawhere
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for FontData
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