Trait codespan::Index [−][src]
pub trait Index: Copy + Ord where
Self: Add<Self::Offset, Output = Self>,
Self: AddAssign<Self::Offset>,
Self: Sub<Self::Offset, Output = Self>,
Self: SubAssign<Self::Offset>,
Self: Sub<Self, Output = Self::Offset>, { type Offset: Offset; }
Index types
These can be thought of as 1-dimensional points
Associated Types
Implementors
impl Index for LineIndex type Offset = LineOffset;
impl Index for ColumnIndex type Offset = ColumnOffset;
impl Index for ByteIndex type Offset = ByteOffset;