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),
) -> Result<usize, ReadError>
fn compute_size( args: &(u16, ValueFormat, ValueFormat), ) -> Result<usize, ReadError>
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)
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