Trait Offset
pub trait Offset: Copy + NoUndef {
// Required methods
fn from_isize<E>(value: isize) -> Result<Self, E> ⓘ
where E: Source;
fn to_isize(self) -> isize ⓘ;
}
Available on crate feature
dep_rkyv
only.Expand description
A offset that can be used with RawRelPtr
.
Required Methods§
fn from_isize<E>(value: isize) -> Result<Self, E> ⓘwhere
E: Source,
fn from_isize<E>(value: isize) -> Result<Self, E> ⓘwhere
E: Source,
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.