Struct read_fonts::tables::variations::TupleVariationCount
source · pub struct TupleVariationCount(/* private fields */);
Expand description
The ‘tupleVariationCount’ field of the Tuple Variation Store Header
The high 4 bits are flags, and the low 12 bits are the number of tuple variation tables for this glyph. The count can be any number between 1 and 4095.
Implementations§
source§impl TupleVariationCount
impl TupleVariationCount
sourcepub const SHARED_POINT_NUMBERS: u16 = 32_768u16
pub const SHARED_POINT_NUMBERS: u16 = 32_768u16
Flag indicating that some or all tuple variation tables reference a shared set of “point” numbers.
These shared numbers are represented as packed point number data at the start of the serialized data.
sourcepub const COUNT_MASK: u16 = 4_095u16
pub const COUNT_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
true
if any tables reference a shared set of point numbers
pub fn count(self) -> u16
Trait Implementations§
source§impl Clone for TupleVariationCount
impl Clone for TupleVariationCount
source§fn clone(&self) -> TupleVariationCount
fn clone(&self) -> TupleVariationCount
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 TupleVariationCount
impl Debug for TupleVariationCount
source§impl Default for TupleVariationCount
impl Default for TupleVariationCount
source§fn default() -> TupleVariationCount
fn default() -> TupleVariationCount
Returns the “default value” for a type. Read more
source§impl Hash for TupleVariationCount
impl Hash for TupleVariationCount
source§impl Ord for TupleVariationCount
impl Ord for TupleVariationCount
source§fn cmp(&self, other: &TupleVariationCount) -> Ordering
fn cmp(&self, other: &TupleVariationCount) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TupleVariationCount
impl PartialEq for TupleVariationCount
source§impl PartialOrd for TupleVariationCount
impl PartialOrd for TupleVariationCount
source§impl Scalar for TupleVariationCount
impl Scalar for TupleVariationCount
impl Copy for TupleVariationCount
impl Eq for TupleVariationCount
impl StructuralPartialEq for TupleVariationCount
Auto Trait Implementations§
impl Freeze for TupleVariationCount
impl RefUnwindSafe for TupleVariationCount
impl Send for TupleVariationCount
impl Sync for TupleVariationCount
impl Unpin for TupleVariationCount
impl UnwindSafe for TupleVariationCount
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
)source§impl<T> FixedSize for Twhere
T: Scalar,
impl<T> FixedSize for Twhere
T: Scalar,
source§const RAW_BYTE_LEN: usize = _
const RAW_BYTE_LEN: usize = _
The raw size of this type, in bytes. Read more