pub(crate) struct ClassPairs<'a> {
class_def1: ClassDef<'a>,
class_def2: ClassDef<'a>,
records: ClassValueRecords<'a>,
matrix: Option<Range<usize>>,
data: FontData<'a>,
format1: ValueFormat,
format2: ValueFormat,
class1_count: u16,
class2_count: u16,
}Expand description
What the class pair subtables of both widths share: their class definitions and value matrix.
Fields§
§class_def1: ClassDef<'a>§class_def2: ClassDef<'a>§records: ClassValueRecords<'a>§matrix: Option<Range<usize>>The matrix, or None if it does not fit in the subtable.
data: FontData<'a>§format1: ValueFormat§format2: ValueFormat§class1_count: u16§class2_count: u16Implementations§
Source§impl<'a> ClassPairs<'a>
impl<'a> ClassPairs<'a>
pub fn new(table: &PairPosFormat2<'a>) -> Self
pub fn new_wide(table: &PairPosFormat4<'a>) -> Self
fn from_parts( class_def1: ClassDef<'a>, class_def2: ClassDef<'a>, records: ClassValueRecords<'a>, data: FontData<'a>, matrix_start: usize, [format1, format2]: [ValueFormat; 2], [class1_count, class2_count]: [u16; 2], ) -> Self
Auto Trait Implementations§
impl<'a> Freeze for ClassPairs<'a>
impl<'a> RefUnwindSafe for ClassPairs<'a>
impl<'a> Send for ClassPairs<'a>
impl<'a> Sync for ClassPairs<'a>
impl<'a> Unpin for ClassPairs<'a>
impl<'a> UnsafeUnpin for ClassPairs<'a>
impl<'a> UnwindSafe for ClassPairs<'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