#[repr(C, packed(1))]pub struct ContextualEntryData {
pub mark_index: BigEndian<u16>,
pub current_index: BigEndian<u16>,
}
Expand description
Entry payload in a contextual subtable state machine.
Fields§
§mark_index: BigEndian<u16>
Index of the substitution table for the marked glyph (use 0xFFFF for none).
current_index: BigEndian<u16>
Index of the substitution table for the current glyph (use 0xFFFF for none)
Implementations§
Source§impl ContextualEntryData
impl ContextualEntryData
Sourcepub fn mark_index(&self) -> u16
pub fn mark_index(&self) -> u16
Index of the substitution table for the marked glyph (use 0xFFFF for none).
Sourcepub fn current_index(&self) -> u16
pub fn current_index(&self) -> u16
Index of the substitution table for the current glyph (use 0xFFFF for none)
Trait Implementations§
Source§impl Clone for ContextualEntryData
impl Clone for ContextualEntryData
Source§fn clone(&self) -> ContextualEntryData
fn clone(&self) -> ContextualEntryData
Returns a duplicate 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 ContextualEntryData
impl Debug for ContextualEntryData
Source§impl FixedSize for ContextualEntryData
impl FixedSize for ContextualEntryData
Source§const RAW_BYTE_LEN: usize = 4usize
const RAW_BYTE_LEN: usize = 4usize
The raw size of this type, in bytes. Read more
Source§impl Hash for ContextualEntryData
impl Hash for ContextualEntryData
Source§impl Ord for ContextualEntryData
impl Ord for ContextualEntryData
Source§fn cmp(&self, other: &ContextualEntryData) -> Ordering
fn cmp(&self, other: &ContextualEntryData) -> 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 ContextualEntryData
impl PartialEq for ContextualEntryData
Source§impl PartialOrd for ContextualEntryData
impl PartialOrd for ContextualEntryData
impl AnyBitPattern for ContextualEntryData
impl Copy for ContextualEntryData
impl Eq for ContextualEntryData
impl StructuralPartialEq for ContextualEntryData
Auto Trait Implementations§
impl Freeze for ContextualEntryData
impl RefUnwindSafe for ContextualEntryData
impl Send for ContextualEntryData
impl Sync for ContextualEntryData
impl Unpin for ContextualEntryData
impl UnwindSafe for ContextualEntryData
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
.