Offset

Trait Offset 

Source
pub trait Offset:
    Copy
    + Ord
    + Neg<Output = Self>
    + Add<Output = Self>
    + AddAssign
    + Sub<Output = Self>
    + SubAssign {
    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§