#[repr(C, packed(1))]pub struct LookupVariationRecord {
pub feature_index: BigEndian<u16>,
pub feature_lookups_offset: BigEndian<Offset32>,
}Expand description
Lookup variations for one feature (ISO/IEC 14496-22:2026, 6.2.11).
Fields§
§feature_index: BigEndian<u16>§feature_lookups_offset: BigEndian<Offset32>Offset from the beginning of FeatureVariations.
Implementations§
Source§impl LookupVariationRecord
impl LookupVariationRecord
pub fn feature_index(&self) -> u16
Sourcepub fn feature_lookups_offset(&self) -> Offset32
pub fn feature_lookups_offset(&self) -> Offset32
Offset from the beginning of FeatureVariations.
Sourcepub fn feature_lookups<'a>(
&self,
data: FontData<'a>,
) -> Result<FeatureLookups<'a>, ReadError>
pub fn feature_lookups<'a>( &self, data: FontData<'a>, ) -> Result<FeatureLookups<'a>, ReadError>
Offset from the beginning of FeatureVariations.
The data argument should be retrieved from the parent table
By calling its offset_data method.
Trait Implementations§
impl AnyBitPattern for LookupVariationRecord
Source§impl Clone for LookupVariationRecord
impl Clone for LookupVariationRecord
Source§fn clone(&self) -> LookupVariationRecord
fn clone(&self) -> LookupVariationRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LookupVariationRecord
Source§impl Debug for LookupVariationRecord
impl Debug for LookupVariationRecord
Source§impl FixedSize for LookupVariationRecord
impl FixedSize for LookupVariationRecord
Source§const RAW_BYTE_LEN: usize
const RAW_BYTE_LEN: usize
The raw size of this type, in bytes. Read more
Auto Trait Implementations§
impl Freeze for LookupVariationRecord
impl RefUnwindSafe for LookupVariationRecord
impl Send for LookupVariationRecord
impl Sync for LookupVariationRecord
impl Unpin for LookupVariationRecord
impl UnsafeUnpin for LookupVariationRecord
impl UnwindSafe for LookupVariationRecord
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.