use typemap::{CloneMap, TypeMap};
use super::{CursorState, State, Framework, FrameworkData};
#[derive(Clone)]
pub struct FrameworkHistory {
pub selectables: Vec<Vec<(usize, usize)>>,
pub data: CloneMap,
pub state: State,
pub cursor: CursorState,
}
impl Into<Framework> for FrameworkHistory {
fn into(self) -> Framework {
Framework {
selectables: self.selectables,
data: FrameworkData::from((TypeMap::custom(), self.data)),
state: self.state,
cursor: self.cursor,
history: Vec::new(),
}
}
}