1/// The structure represents an offset in a text.
2#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
3pub enum Offset {
4 /// An offset from the start.
5 Begin(usize),
6 /// An offset from the end.
7 End(usize),
8}
9