#[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
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
.