read_fonts

Trait 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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§