feat: add TreeState get_offset()

This commit is contained in:
EdJoPaTo committed 2021-02-13 09:49:35 +01:00
1 parent 5e5ef7972a
commit 075eb052a3
1 file changed
+4
+4
View File
@@ -68,6 +68,10 @@ impl TreeState {
pub fn get_all_opened(&self) -> Vec<TreeIdentifierVec> {
self.opened.iter().cloned().collect()
}
pub fn get_offset(&self) -> usize {
self.offset
}
}
#[derive(Debug, Clone)]