Struct owned_ttf_parser::gpos::ClassMatrix
source · pub struct ClassMatrix<'a> {
table_data: &'a [u8],
matrix: &'a [u8],
counts: (u16, u16),
flags: (ValueFormatFlags, ValueFormatFlags),
record_len: u8,
}
Expand description
A ValueRecord
pairs matrix used by PairAdjustment
.
Fields§
§table_data: &'a [u8]
§matrix: &'a [u8]
§counts: (u16, u16)
§flags: (ValueFormatFlags, ValueFormatFlags)
§record_len: u8
Implementations§
source§impl<'a> ClassMatrix<'a>
impl<'a> ClassMatrix<'a>
sourcepub fn get(
&self,
classes: (u16, u16),
) -> Option<(ValueRecord<'a>, ValueRecord<'a>)>
pub fn get( &self, classes: (u16, u16), ) -> Option<(ValueRecord<'a>, ValueRecord<'a>)>
Returns a ValueRecord
pair using specified classes.
Trait Implementations§
source§impl<'a> Clone for ClassMatrix<'a>
impl<'a> Clone for ClassMatrix<'a>
source§fn clone(&self) -> ClassMatrix<'a>
fn clone(&self) -> ClassMatrix<'a>
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 ClassMatrix<'_>
impl Debug for ClassMatrix<'_>
impl<'a> Copy for ClassMatrix<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClassMatrix<'a>
impl<'a> RefUnwindSafe for ClassMatrix<'a>
impl<'a> Send for ClassMatrix<'a>
impl<'a> Sync for ClassMatrix<'a>
impl<'a> Unpin for ClassMatrix<'a>
impl<'a> UnwindSafe for ClassMatrix<'a>
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