Trait ttf_parser::parser::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§