Trait codespan::Offset
[−]
[src]
pub trait Offset: Copy + Ord where
Self: Neg<Output = Self>,
Self: Add<Self, Output = Self>,
Self: AddAssign<Self>,
Self: Sub<Self, Output = Self>,
Self: SubAssign<Self>, { const ZERO: Self; }
A relative offset between two indices
These can be thought of as 1-dimensional vectors
Associated Constants
const ZERO: Self
Implementors
impl Offset for LineOffset
impl Offset for ColumnOffset
impl Offset for ByteOffset