Allow access to Marker’s content.

This commit is contained in:
Martin Hoffmann 2017-09-02 13:49:53 +02:00
parent 94510e7e68
commit b9b79a5cf8

View file

@ -33,6 +33,18 @@ impl Marker {
col: col col: col
} }
} }
pub fn index(&self) -> usize {
self.index
}
pub fn line(&self) -> usize {
self.line
}
pub fn col(&self) -> usize {
self.col
}
} }
#[derive(Clone, PartialEq, Debug, Eq)] #[derive(Clone, PartialEq, Debug, Eq)]