[][src]Trait codespan::Offset

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

Loading content...

Implementors

impl Offset for ByteOffset[src]

impl Offset for ColumnOffset[src]

impl Offset for LineOffset[src]

Loading content...