Struct truetype::OffsetTableRecord
[−]
[src]
pub struct OffsetTableRecord { pub tag: u32, pub checksum: u32, pub offset: u32, pub length: u32, }
A record of an offset table.
Fields
tag: u32
checksum: u32
offset: u32
length: u32
Methods
impl OffsetTableRecord
[src]
fn checksum<T, F>(&self, tape: &mut T, process: F) -> Result<bool> where T: Tape, F: Fn(usize, u32) -> u32
Compute the checksum of the corresponding table and compare it with the one in the record.
Trait Implementations
impl Copy for OffsetTableRecord
[src]
impl PartialEq for OffsetTableRecord
[src]
fn eq(&self, __arg_0: &OffsetTableRecord) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OffsetTableRecord) -> bool
This method tests for !=
.
impl Eq for OffsetTableRecord
[src]
impl Default for OffsetTableRecord
[src]
fn default() -> OffsetTableRecord
Returns the "default value" for a type. Read more
impl Debug for OffsetTableRecord
[src]
impl Clone for OffsetTableRecord
[src]
fn clone(&self) -> OffsetTableRecord
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more