pub trait Offset: Copy + NoUndef {
// Required methods
fn from_isize<E: Source>(value: isize) -> Result<Self, E>;
fn to_isize(self) -> isize;
}
Expand description
A offset that can be used with RawRelPtr
.
Required Methods§
Sourcefn from_isize<E: Source>(value: isize) -> Result<Self, E>
fn from_isize<E: Source>(value: isize) -> Result<Self, E>
Creates a new offset between a from
position and a to
position.
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.