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