pub enum FontSource {
Embedded(&'static [u8]),
File(PathBuf),
System(String),
}
Variants§
Embedded(&'static [u8])
The font is embedded inside the binary file
File(PathBuf)
The font is loaded from a file
System(String)
The font is a system built-in font
Trait Implementations§
Source§impl Clone for FontSource
impl Clone for FontSource
Source§fn clone(&self) -> FontSource
fn clone(&self) -> FontSource
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FontSource
impl Debug for FontSource
Source§impl Display for FontSource
impl Display for FontSource
Source§impl Hash for FontSource
impl Hash for FontSource
Source§impl Ord for FontSource
impl Ord for FontSource
Source§fn cmp(&self, other: &FontSource) -> Ordering
fn cmp(&self, other: &FontSource) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FontSource
impl PartialEq for FontSource
Source§impl PartialOrd for FontSource
impl PartialOrd for FontSource
impl Eq for FontSource
impl StructuralPartialEq for FontSource
Auto Trait Implementations§
impl Freeze for FontSource
impl RefUnwindSafe for FontSource
impl Send for FontSource
impl Sync for FontSource
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)