Struct truetype::compound::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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl Value for OffsetTableRecord
[src]

fn read<T: Tape>(tape: &mut T) -> Result<Self>

Read a value.