use crate::DataIndexable;
const CURRENT_DATA_INDEX_KEY: usize = 1;
pub trait CurrentDataIndex: DataIndexable {
fn get_current_data_index(&self) -> Option<&usize> {
self.get_data_index(&CURRENT_DATA_INDEX_KEY, true)
}
fn set_current_data_index(&mut self, index: usize) {
self.set_data_index(CURRENT_DATA_INDEX_KEY, index, true)
}
}