Allow access to Marker’s content.
This commit is contained in:
parent
94510e7e68
commit
b9b79a5cf8
1 changed files with 12 additions and 0 deletions
|
@ -33,6 +33,18 @@ impl Marker {
|
|||
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)]
|
||||
|
|
Loading…
Reference in a new issue