Struct read_fonts::tables::aat::LookupSegment4
source · #[repr(C, packed(1))]pub struct LookupSegment4 {
pub last_glyph: BigEndian<u16>,
pub first_glyph: BigEndian<u16>,
pub value_offset: BigEndian<u16>,
}
Expand description
Lookup segment for format 4.
Fields§
§last_glyph: BigEndian<u16>
Last glyph index in this segment.
first_glyph: BigEndian<u16>
First glyph index in this segment.
value_offset: BigEndian<u16>
A 16-bit offset from the start of the table to the data.
Implementations§
source§impl LookupSegment4
impl LookupSegment4
sourcepub fn last_glyph(&self) -> u16
pub fn last_glyph(&self) -> u16
Last glyph index in this segment.
sourcepub fn first_glyph(&self) -> u16
pub fn first_glyph(&self) -> u16
First glyph index in this segment.
sourcepub fn value_offset(&self) -> u16
pub fn value_offset(&self) -> u16
A 16-bit offset from the start of the table to the data.
Trait Implementations§
source§impl Clone for LookupSegment4
impl Clone for LookupSegment4
source§fn clone(&self) -> LookupSegment4
fn clone(&self) -> LookupSegment4
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 LookupSegment4
impl Debug for LookupSegment4
source§impl FixedSize for LookupSegment4
impl FixedSize for LookupSegment4
source§const RAW_BYTE_LEN: usize = 6usize
const RAW_BYTE_LEN: usize = 6usize
The raw size of this type, in bytes. Read more
source§impl Hash for LookupSegment4
impl Hash for LookupSegment4
source§impl Ord for LookupSegment4
impl Ord for LookupSegment4
source§fn cmp(&self, other: &LookupSegment4) -> Ordering
fn cmp(&self, other: &LookupSegment4) -> 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 LookupSegment4
impl PartialEq for LookupSegment4
source§impl PartialOrd for LookupSegment4
impl PartialOrd for LookupSegment4
source§impl<'a> SomeRecord<'a> for LookupSegment4
impl<'a> SomeRecord<'a> for LookupSegment4
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for LookupSegment4
impl Copy for LookupSegment4
impl Eq for LookupSegment4
impl StructuralPartialEq for LookupSegment4
Auto Trait Implementations§
impl Freeze for LookupSegment4
impl RefUnwindSafe for LookupSegment4
impl Send for LookupSegment4
impl Sync for LookupSegment4
impl Unpin for LookupSegment4
impl UnwindSafe for LookupSegment4
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
)