Struct truetype::offset_table::Record [] [src]

pub struct Record {
    pub tag: Tag,
    pub checksum: u32,
    pub offset: u32,
    pub length: u32,
}

A record of an offset table.

Fields

tag: Tag checksum: u32 offset: u32 length: u32

Methods

impl Record
[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 Record
[src]

impl PartialEq for Record
[src]

fn eq(&self, __arg_0: &Record) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Record) -> bool

This method tests for !=.

impl Eq for Record
[src]

impl Debug for Record
[src]

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

Formats the value using the given formatter.

impl Clone for Record
[src]

fn clone(&self) -> Record

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 Record
[src]

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

Read a value.