revue 2.71.1

A Vue-style TUI framework for Rust with CSS styling
Documentation
1
2
3
4
5
6
7
8
9
//! Grid trait for canvas drawing

use crate::style::Color;

/// Trait for grids that can be drawn on with shapes
pub trait Grid {
    /// Set a dot at the given coordinates
    fn set(&mut self, x: usize, y: usize, color: Color);
}