feat: add TreeState get_offset()

This commit is contained in:
EdJoPaTo
2021-02-13 09:49:35 +01:00
parent 5e5ef7972a
commit 075eb052a3
+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)]