cell.rs 371 B

123456789101112131415161718
  1. use crate::view::{colors::Colors, style::CharStyle};
  2. #[derive(Debug, Clone, PartialEq, Default)]
  3. pub struct Cell {
  4. pub content: char,
  5. pub colors: Colors,
  6. pub style: CharStyle,
  7. }
  8. impl Cell {
  9. pub fn new(content: char, colors: Colors, style: CharStyle) -> Cell {
  10. Cell {
  11. content,
  12. colors,
  13. style,
  14. }
  15. }
  16. }