Merge pull request #86 from partim/pub-marker

Allow access to Marker’s content.
This commit is contained in:
Chen Yuheng 2017-09-05 18:41:57 +08:00 committed by GitHub
commit bc99a1e14a

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)]