#[repr(C)]
#[derive(Clone, PartialEq, Eq, Copy, Default)]
pub struct Loc {
pub begin: usize,
pub end: usize,
}
impl Loc {
pub fn new(begin: usize, end: usize) -> Loc {
Self { begin, end }
}
pub fn begin(&self) -> usize {
self.begin
}
pub fn end(&self) -> usize {
self.end
}
}