pub struct ClassValueRecords<'a> {
data: FontData<'a>,
start: u32,
record_size: u32,
format1_len: u32,
class1_count: u16,
class2_count: u16,
format1: ValueFormat,
format2: ValueFormat,
}Expand description
The two-dimensional array of value records in a PairPosFormat2, located
but not read.
The class counts, value formats and record stride are read once when this is
built, so addressing a record afterwards is pure arithmetic. Callers walking
many class pairs should build this once and reuse it rather than going
through PairPosFormat2::value_record_refs, which rebuilds it every call.
Fields§
§data: FontData<'a>§start: u32§record_size: u32§format1_len: u32§class1_count: u16§class2_count: u16§format1: ValueFormat§format2: ValueFormatImplementations§
Source§impl<'a> ClassValueRecords<'a>
impl<'a> ClassValueRecords<'a>
Sourcepub fn class1_count(&self) -> u16
pub fn class1_count(&self) -> u16
Number of classes in classDef1, including class 0.
Sourcepub fn class2_count(&self) -> u16
pub fn class2_count(&self) -> u16
Number of classes in classDef2, including class 0.
Trait Implementations§
Source§impl<'a> Clone for ClassValueRecords<'a>
impl<'a> Clone for ClassValueRecords<'a>
Source§fn clone(&self) -> ClassValueRecords<'a>
fn clone(&self) -> ClassValueRecords<'a>
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<'a> Copy for ClassValueRecords<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClassValueRecords<'a>
impl<'a> RefUnwindSafe for ClassValueRecords<'a>
impl<'a> Send for ClassValueRecords<'a>
impl<'a> Sync for ClassValueRecords<'a>
impl<'a> Unpin for ClassValueRecords<'a>
impl<'a> UnsafeUnpin for ClassValueRecords<'a>
impl<'a> UnwindSafe for ClassValueRecords<'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