#[repr(C, packed(1))]pub struct IndexSubtableRecord {
pub first_glyph_index: BigEndian<GlyphId16>,
pub last_glyph_index: BigEndian<GlyphId16>,
pub index_subtable_offset: BigEndian<Offset32>,
}
Fields§
§first_glyph_index: BigEndian<GlyphId16>
First glyph ID of this range.
last_glyph_index: BigEndian<GlyphId16>
Last glyph ID of this range (inclusive).
index_subtable_offset: BigEndian<Offset32>
Offset to an IndexSubtable from the start of the IndexSubtableList.
Implementations§
Source§impl IndexSubtableRecord
impl IndexSubtableRecord
Sourcepub fn first_glyph_index(&self) -> GlyphId16
pub fn first_glyph_index(&self) -> GlyphId16
First glyph ID of this range.
Sourcepub fn last_glyph_index(&self) -> GlyphId16
pub fn last_glyph_index(&self) -> GlyphId16
Last glyph ID of this range (inclusive).
Sourcepub fn index_subtable_offset(&self) -> Offset32
pub fn index_subtable_offset(&self) -> Offset32
Offset to an IndexSubtable from the start of the IndexSubtableList.
Sourcepub fn index_subtable<'a>(
&self,
data: FontData<'a>,
) -> Result<IndexSubtable<'a>, ReadError>
pub fn index_subtable<'a>( &self, data: FontData<'a>, ) -> Result<IndexSubtable<'a>, ReadError>
Offset to an IndexSubtable from the start of the IndexSubtableList.
The data
argument should be retrieved from the parent table
By calling its offset_data
method.
Trait Implementations§
Source§impl Clone for IndexSubtableRecord
impl Clone for IndexSubtableRecord
Source§fn clone(&self) -> IndexSubtableRecord
fn clone(&self) -> IndexSubtableRecord
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 IndexSubtableRecord
impl Debug for IndexSubtableRecord
Source§impl FixedSize for IndexSubtableRecord
impl FixedSize for IndexSubtableRecord
Source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
impl AnyBitPattern for IndexSubtableRecord
impl Copy for IndexSubtableRecord
Auto Trait Implementations§
impl Freeze for IndexSubtableRecord
impl RefUnwindSafe for IndexSubtableRecord
impl Send for IndexSubtableRecord
impl Sync for IndexSubtableRecord
impl Unpin for IndexSubtableRecord
impl UnwindSafe for IndexSubtableRecord
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
.