Struct read_fonts::tables::gpos::Class1Record
source · pub struct Class1Record<'a> {
pub class2_records: ComputedArray<'a, Class2Record>,
}
Expand description
Part of PairPosFormat2
Fields§
§class2_records: ComputedArray<'a, Class2Record>
Array of Class2 records, ordered by classes in classDef2.
Implementations§
source§impl<'a> Class1Record<'a>
impl<'a> Class1Record<'a>
sourcepub fn class2_records(&self) -> &ComputedArray<'a, Class2Record>
pub fn class2_records(&self) -> &ComputedArray<'a, Class2Record>
Array of Class2 records, ordered by classes in classDef2.
source§impl<'a> Class1Record<'a>
impl<'a> Class1Record<'a>
sourcepub fn read(
data: FontData<'a>,
class2_count: u16,
value_format1: ValueFormat,
value_format2: ValueFormat
) -> Result<Self, ReadError>
pub fn read( data: FontData<'a>, class2_count: u16, value_format1: ValueFormat, value_format2: ValueFormat ) -> Result<Self, ReadError>
A constructor that requires additional arguments.
This type requires some external state in order to be parsed.
Trait Implementations§
source§impl<'a> Clone for Class1Record<'a>
impl<'a> Clone for Class1Record<'a>
source§fn clone(&self) -> Class1Record<'a>
fn clone(&self) -> Class1Record<'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 ComputeSize for Class1Record<'_>
impl ComputeSize for Class1Record<'_>
source§fn compute_size(args: &(u16, ValueFormat, ValueFormat)) -> usize
fn compute_size(args: &(u16, ValueFormat, ValueFormat)) -> usize
Compute the number of bytes required to represent this type.
source§impl<'a> Debug for Class1Record<'a>
impl<'a> Debug for Class1Record<'a>
source§impl<'a> FontReadWithArgs<'a> for Class1Record<'a>
impl<'a> FontReadWithArgs<'a> for Class1Record<'a>
source§fn read_with_args(
data: FontData<'a>,
args: &(u16, ValueFormat, ValueFormat)
) -> Result<Self, ReadError>
fn read_with_args( data: FontData<'a>, args: &(u16, ValueFormat, ValueFormat) ) -> Result<Self, ReadError>
read an item, using the provided args. Read more
source§impl ReadArgs for Class1Record<'_>
impl ReadArgs for Class1Record<'_>
type Args = (u16, ValueFormat, ValueFormat)
source§impl<'a> SomeRecord<'a> for Class1Record<'a>
impl<'a> SomeRecord<'a> for Class1Record<'a>
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations§
impl<'a> Freeze for Class1Record<'a>
impl<'a> RefUnwindSafe for Class1Record<'a>
impl<'a> Send for Class1Record<'a>
impl<'a> Sync for Class1Record<'a>
impl<'a> Unpin for Class1Record<'a>
impl<'a> UnwindSafe for Class1Record<'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