[go: up one dir, main page]

Trait Offset

Source
pub trait Offset: Copy + Ord
where 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§

Source

const ZERO: Self

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.

Implementors§