Trait codespan::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

Object Safety§

This trait is not object safe.

Implementors§