pub enum OwnedFontSource {
Memory(FcFont),
Disk(FcFontPath),
}Expand description
Owned font-source descriptor, returned by.
Variants§
Memory(FcFont)
Font loaded from memory (small metadata + owned Vec<u8>).
Disk(FcFontPath)
Font loaded from disk.
Trait Implementations§
Source§impl Clone for OwnedFontSource
impl Clone for OwnedFontSource
Source§fn clone(&self) -> OwnedFontSource
fn clone(&self) -> OwnedFontSource
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 OwnedFontSource
impl RefUnwindSafe for OwnedFontSource
impl Send for OwnedFontSource
impl Sync for OwnedFontSource
impl Unpin for OwnedFontSource
impl UnsafeUnpin for OwnedFontSource
impl UnwindSafe for OwnedFontSource
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