Enum webrender_api::font::FontTemplate
source · pub enum FontTemplate {
Raw(Arc<Vec<u8>>, u32),
Native(NativeFontHandle),
}
Expand description
Container for the raw data describing a font. This might be a stream of bytes corresponding to a downloaded font, or a handle to a native font from the operating system.
Note that fonts need to be instantiated before being used, which involves assigning size and various other options. The word ‘template’ here is intended to distinguish this data from instance-specific data.
Variants§
Trait Implementations§
source§impl Clone for FontTemplate
impl Clone for FontTemplate
source§fn clone(&self) -> FontTemplate
fn clone(&self) -> FontTemplate
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 FontTemplate
impl Debug for FontTemplate
source§impl Hash for FontTemplate
impl Hash for FontTemplate
source§impl PartialEq for FontTemplate
impl PartialEq for FontTemplate
impl Eq for FontTemplate
impl StructuralPartialEq for FontTemplate
Auto Trait Implementations§
impl Freeze for FontTemplate
impl RefUnwindSafe for FontTemplate
impl Send for FontTemplate
impl Sync for FontTemplate
impl Unpin for FontTemplate
impl UnwindSafe for FontTemplate
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
)