Struct read_fonts::tables::cmap::VariationSelector
source · [−]#[repr(C)]#[repr(packed)]pub struct VariationSelector {
pub var_selector: BigEndian<Uint24>,
pub default_uvs_offset: BigEndian<Offset32>,
pub non_default_uvs_offset: BigEndian<Offset32>,
}Expand description
Part of Cmap14
Fields
var_selector: BigEndian<Uint24>Variation selector
default_uvs_offset: BigEndian<Offset32>Offset from the start of the format 14 subtable to Default UVS Table. May be 0.
non_default_uvs_offset: BigEndian<Offset32>Offset from the start of the format 14 subtable to Non-Default UVS Table. May be 0.
Implementations
sourceimpl VariationSelector
impl VariationSelector
sourcepub fn var_selector(&self) -> Uint24
pub fn var_selector(&self) -> Uint24
Variation selector
sourcepub fn default_uvs_offset(&self) -> Offset32
pub fn default_uvs_offset(&self) -> Offset32
Offset from the start of the format 14 subtable to Default UVS Table. May be 0.
sourcepub fn non_default_uvs_offset(&self) -> Offset32
pub fn non_default_uvs_offset(&self) -> Offset32
Offset from the start of the format 14 subtable to Non-Default UVS Table. May be 0.
Trait Implementations
sourceimpl Clone for VariationSelector
impl Clone for VariationSelector
sourcefn clone(&self) -> VariationSelector
fn clone(&self) -> VariationSelector
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for VariationSelector
impl Debug for VariationSelector
sourceimpl FixedSize for VariationSelector
impl FixedSize for VariationSelector
sourceconst RAW_BYTE_LEN: usize = 11usize
const RAW_BYTE_LEN: usize = 11usize
The raw size of this type, in bytes. Read more
sourceimpl<'a> SomeRecord<'a> for VariationSelector
impl<'a> SomeRecord<'a> for VariationSelector
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations
impl RefUnwindSafe for VariationSelector
impl Send for VariationSelector
impl Sync for VariationSelector
impl Unpin for VariationSelector
impl UnwindSafe for VariationSelector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more