#[repr(C, packed(1))]pub struct MarkRecord2 {
pub mark_class: BigEndian<u16>,
pub mark_anchor_offset: BigEndian<Offset24>,
}Expand description
MarkRecord2 (ISO/IEC 14496-22:2026).
Fields§
§mark_class: BigEndian<u16>Class defined for the associated mark.
mark_anchor_offset: BigEndian<Offset24>Offset to Anchor table, from beginning of MarkArray table.
Implementations§
Source§impl MarkRecord2
impl MarkRecord2
Sourcepub fn mark_class(&self) -> u16
pub fn mark_class(&self) -> u16
Class defined for the associated mark.
Sourcepub fn mark_anchor_offset(&self) -> Offset24
pub fn mark_anchor_offset(&self) -> Offset24
Offset to Anchor table, from beginning of MarkArray table.
Sourcepub fn mark_anchor<'a>(
&self,
data: FontData<'a>,
) -> Result<AnchorTable<'a>, ReadError>
pub fn mark_anchor<'a>( &self, data: FontData<'a>, ) -> Result<AnchorTable<'a>, ReadError>
Offset to Anchor table, from beginning of MarkArray table.
The data argument should be retrieved from the parent table
By calling its offset_data method.
Trait Implementations§
impl AnyBitPattern for MarkRecord2
Source§impl Clone for MarkRecord2
impl Clone for MarkRecord2
Source§fn clone(&self) -> MarkRecord2
fn clone(&self) -> MarkRecord2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MarkRecord2
Source§impl Debug for MarkRecord2
impl Debug for MarkRecord2
Source§impl FixedSize for MarkRecord2
impl FixedSize for MarkRecord2
Source§const RAW_BYTE_LEN: usize
const RAW_BYTE_LEN: usize
The raw size of this type, in bytes. Read more
Auto Trait Implementations§
impl Freeze for MarkRecord2
impl RefUnwindSafe for MarkRecord2
impl Send for MarkRecord2
impl Sync for MarkRecord2
impl Unpin for MarkRecord2
impl UnsafeUnpin for MarkRecord2
impl UnwindSafe for MarkRecord2
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.