pub enum FontSource {
Local(PathBuf),
Remote(String),
DataUri(String),
Standard(StandardFont),
}Variants§
Implementations§
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 Debug for FontSource
impl Debug for FontSource
Source§impl Hash for FontSource
impl Hash for FontSource
Source§impl PartialEq for FontSource
impl PartialEq for FontSource
Source§fn eq(&self, other: &FontSource) -> bool
fn eq(&self, other: &FontSource) -> bool
Tests for
self and other values to be equal, and is used by ==.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 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