ttf_parser::parser

Trait Offset

Source
pub trait Offset {
    // Required method
    fn to_usize(&self) -> usize;

    // Provided method
    fn is_null(&self) -> bool { ... }
}
Expand description

A common offset methods.

Required Methods§

Source

fn to_usize(&self) -> usize

Converts the offset to usize.

Provided Methods§

Source

fn is_null(&self) -> bool

Checks that offset is null.

Implementors§