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) -> TupleVariationCount
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 duplicate 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<'de> Deserialize<'de> for TupleVariationCount
impl<'de> Deserialize<'de> for TupleVariationCount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TupleVariationCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TupleVariationCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FontWrite for TupleVariationCount
impl FontWrite for TupleVariationCount
Source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
Source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. 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
Source§fn to_raw(self) -> <TupleVariationCount as Scalar>::Raw
fn to_raw(self) -> <TupleVariationCount as Scalar>::Raw
Encode this type as raw big-endian bytes
Source§fn from_raw(raw: <TupleVariationCount as Scalar>::Raw) -> TupleVariationCount
fn from_raw(raw: <TupleVariationCount as Scalar>::Raw) -> TupleVariationCount
Create an instance of this type from raw big-endian bytes
Source§impl Serialize for TupleVariationCount
impl Serialize for TupleVariationCount
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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
Source§impl<T> FromObjRef<BigEndian<T>> for T
impl<T> FromObjRef<BigEndian<T>> for T
Source§fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
fn from_obj_ref(from: &BigEndian<T>, _: FontData<'_>) -> T
Convert
from
to an instance of Self
, using the provided data to resolve offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T
, using the provided data to resolve any offsets.