logo
pub trait Offset: Copy {
    fn between(from: usize, to: usize) -> Result<Self, OffsetError>;
    fn to_isize(&self) -> isize;
}
Expand description

A offset that can be used with RawRelPtr.

Required Methods

Creates a new offset between a from position and a to position.

Gets the offset as an isize.

Implementations on Foreign Types

Implementors