Trait read_fonts::Offset

source ·
pub trait Offset: Copy {
    // Required method
    fn to_usize(self) -> usize;

    // Provided method
    fn non_null(self) -> Option<usize> { ... }
}
Expand description

Any offset type.

Required Methods§

source

fn to_usize(self) -> usize

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Offset for Offset16

source§

impl Offset for Offset24

source§

impl Offset for Offset32

Implementors§