Enum read_fonts::tables::layout::DeviceOrVariationIndex
source · pub enum DeviceOrVariationIndex<'a> {
Device(Device<'a>),
VariationIndex(VariationIndex<'a>),
}
Expand description
Either a Device table (in a non-variable font) or a VariationIndex table (in a variable font)
Variants§
Device(Device<'a>)
VariationIndex(VariationIndex<'a>)
Implementations§
source§impl<'a> DeviceOrVariationIndex<'a>
impl<'a> DeviceOrVariationIndex<'a>
sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return the FontData
used to resolve offsets for this table.
Trait Implementations§
source§impl<'a> Clone for DeviceOrVariationIndex<'a>
impl<'a> Clone for DeviceOrVariationIndex<'a>
source§fn clone(&self) -> DeviceOrVariationIndex<'a>
fn clone(&self) -> DeviceOrVariationIndex<'a>
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<'a> Debug for DeviceOrVariationIndex<'a>
impl<'a> Debug for DeviceOrVariationIndex<'a>
source§impl<'a> FontRead<'a> for DeviceOrVariationIndex<'a>
impl<'a> FontRead<'a> for DeviceOrVariationIndex<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeviceOrVariationIndex<'a>
impl<'a> RefUnwindSafe for DeviceOrVariationIndex<'a>
impl<'a> Send for DeviceOrVariationIndex<'a>
impl<'a> Sync for DeviceOrVariationIndex<'a>
impl<'a> Unpin for DeviceOrVariationIndex<'a>
impl<'a> UnwindSafe for DeviceOrVariationIndex<'a>
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
)