pub enum FoundFontSource {
Path(PathBuf),
Bytes(Arc<[u8]>),
}Expand description
Font bytes source resolved from the system font database.
Path points to an on-disk font file.
Bytes contains the font data copied into memory (can be large).
Variants§
Trait Implementations§
Source§impl Clone for FoundFontSource
impl Clone for FoundFontSource
Source§fn clone(&self) -> FoundFontSource
fn clone(&self) -> FoundFontSource
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 FoundFontSource
impl RefUnwindSafe for FoundFontSource
impl Send for FoundFontSource
impl Sync for FoundFontSource
impl Unpin for FoundFontSource
impl UnsafeUnpin for FoundFontSource
impl UnwindSafe for FoundFontSource
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