Struct read_fonts::tables::cmap::SubHeader
source · #[repr(C, packed(1))]pub struct SubHeader {
pub first_code: BigEndian<u16>,
pub entry_count: BigEndian<u16>,
pub id_delta: BigEndian<i16>,
pub id_range_offset: BigEndian<u16>,
}
Expand description
Part of Cmap2
Fields§
§first_code: BigEndian<u16>
First valid low byte for this SubHeader.
entry_count: BigEndian<u16>
Number of valid low bytes for this SubHeader.
id_delta: BigEndian<i16>
See text below.
id_range_offset: BigEndian<u16>
See text below.
Implementations§
source§impl SubHeader
impl SubHeader
sourcepub fn first_code(&self) -> u16
pub fn first_code(&self) -> u16
First valid low byte for this SubHeader.
sourcepub fn entry_count(&self) -> u16
pub fn entry_count(&self) -> u16
Number of valid low bytes for this SubHeader.
sourcepub fn id_range_offset(&self) -> u16
pub fn id_range_offset(&self) -> u16
See text below.
Trait Implementations§
source§impl FixedSize for SubHeader
impl FixedSize for SubHeader
source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
source§impl Ord for SubHeader
impl Ord for SubHeader
source§impl PartialOrd for SubHeader
impl PartialOrd for SubHeader
source§impl<'a> SomeRecord<'a> for SubHeader
impl<'a> SomeRecord<'a> for SubHeader
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for SubHeader
impl Copy for SubHeader
impl Eq for SubHeader
impl StructuralPartialEq for SubHeader
Auto Trait Implementations§
impl Freeze for SubHeader
impl RefUnwindSafe for SubHeader
impl Send for SubHeader
impl Sync for SubHeader
impl Unpin for SubHeader
impl UnwindSafe for SubHeader
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
.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
)