val 0.4.0

An arbitrary precision calculator language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub(crate) struct HighlightSpan {
  pub(crate) end: usize,
  pub(crate) kind: HighlightKind,
  pub(crate) start: usize,
}

impl HighlightSpan {
  pub(crate) fn new(start: usize, end: usize, kind: HighlightKind) -> Self {
    Self { end, kind, start }
  }
}