pub struct ChessRender {
pub grid_size: f32,
pub board_white: String,
pub board_black: String,
pub path_color: String,
pub path_width: f32,
}Fields§
§grid_size: f32§board_white: String§board_black: String§path_color: String§path_width: f32Implementations§
Source§impl ChessRender
impl ChessRender
pub fn document(&self, width: f32, height: f32) -> Document
pub fn grid_color(&self, x: isize, y: isize) -> &str
pub fn draw_square(&self, x: isize, y: isize) -> Rectangle
pub fn draw_path(&self, x1: isize, y1: isize, x2: isize, y2: isize) -> Line
pub fn draw_point(&self, x: isize, y: isize) -> Circle
pub fn draw_step(&self, x: isize, y: isize, step: usize) -> Text
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChessRender
impl RefUnwindSafe for ChessRender
impl Send for ChessRender
impl Sync for ChessRender
impl Unpin for ChessRender
impl UnwindSafe for ChessRender
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more