pub struct TupleIndex(/* private fields */);
Implementations§
source§impl TupleIndex
impl TupleIndex
sourcepub const EMBEDDED_PEAK_TUPLE: u16 = 32_768u16
pub const EMBEDDED_PEAK_TUPLE: u16 = 32_768u16
Flag indicating that this tuple variation header includes an embedded peak tuple record, immediately after the tupleIndex field.
If set, the low 12 bits of the tupleIndex value are ignored.
Note that this must always be set within the ‘cvar’ table.
sourcepub const INTERMEDIATE_REGION: u16 = 16_384u16
pub const INTERMEDIATE_REGION: u16 = 16_384u16
Flag indicating that this tuple variation table applies to an intermediate region within the variation space.
If set, the header includes the two intermediate-region, start and end tuple records, immediately after the peak tuple record (if present).
sourcepub const PRIVATE_POINT_NUMBERS: u16 = 8_192u16
pub const PRIVATE_POINT_NUMBERS: u16 = 8_192u16
Flag indicating that the serialized data for this tuple variation table includes packed “point” number data.
If set, this tuple variation table uses that number data; if clear, this tuple variation table uses shared number data found at the start of the serialized data for this glyph variation data or ‘cvar’ table.
sourcepub const TUPLE_INDEX_MASK: u16 = 4_095u16
pub const TUPLE_INDEX_MASK: u16 = 4_095u16
Mask for the low 12 bits to give the shared tuple records index.
pub fn bits(self) -> u16
pub fn from_bits(bits: u16) -> Self
sourcepub fn embedded_peak_tuple(self) -> bool
pub fn embedded_peak_tuple(self) -> bool
true
if the header includes an embedded peak tuple.
sourcepub fn intermediate_region(self) -> bool
pub fn intermediate_region(self) -> bool
true
if the header includes the two intermediate region tuple records.
sourcepub fn private_point_numbers(self) -> bool
pub fn private_point_numbers(self) -> bool
true
if the data for this table includes packed point number data.
pub fn tuple_records_index(self) -> Option<u16>
Trait Implementations§
source§impl Clone for TupleIndex
impl Clone for TupleIndex
source§fn clone(&self) -> TupleIndex
fn clone(&self) -> TupleIndex
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TupleIndex
impl Debug for TupleIndex
source§impl Default for TupleIndex
impl Default for TupleIndex
source§fn default() -> TupleIndex
fn default() -> TupleIndex
source§impl Hash for TupleIndex
impl Hash for TupleIndex
source§impl Ord for TupleIndex
impl Ord for TupleIndex
source§fn cmp(&self, other: &TupleIndex) -> Ordering
fn cmp(&self, other: &TupleIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for TupleIndex
impl PartialEq for TupleIndex
source§impl PartialOrd for TupleIndex
impl PartialOrd for TupleIndex
source§impl Scalar for TupleIndex
impl Scalar for TupleIndex
impl Copy for TupleIndex
impl Eq for TupleIndex
impl StructuralPartialEq for TupleIndex
Auto Trait Implementations§
impl Freeze for TupleIndex
impl RefUnwindSafe for TupleIndex
impl Send for TupleIndex
impl Sync for TupleIndex
impl Unpin for TupleIndex
impl UnwindSafe for TupleIndex
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
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)
clone_to_uninit
)