use std::hash::{Hash, Hasher};
use super::style::Style;
#[derive(Clone, Debug)]
pub struct Cell {
pub c: char,
pub combining: Vec<char>,
pub style: Style,
pub width: u8,
}
impl Hash for Cell {
fn hash<H: Hasher>(&self, state: &mut H) {
self.c.hash(state);
self.combining.hash(state);
self.style.hash(state);
self.width.hash(state);
}
}
impl Default for Cell {
fn default() -> Self {
Self { c: ' ', combining: Vec::new(), style: Style::default(), width: 1 }
}
}