use std::ops::Range;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default, Hash)]
pub struct Span {
pub lo: usize,
pub hi: usize,
}
impl Span {
pub fn new(lo: usize, hi: usize) -> Self {
Self { lo, hi }
}
}
impl From<Span> for Range<usize> {
fn from(val: Span) -> Self {
val.lo..val.hi
}
}