Skip to main content

Offset

Trait Offset 

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

A common offset methods.

Required Methods§

Source

fn to_usize(&self) -> usize

Converts the offset to usize.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§