pub trait Offset: Copy + Ordwhere
Self: Neg<Output = Self> + Add<Self, Output = Self> + AddAssign<Self> + Sub<Self, Output = Self> + SubAssign<Self>,{
const ZERO: Self;
}
Expand description
A relative offset between two indices
These can be thought of as 1-dimensional vectors
Required Associated Constants§
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.