Struct chessground::DrawShape
[−]
[src]
pub struct DrawShape { /* fields omitted */ }
An arrow or circle drawn on the board.
Methods
impl DrawShape
[src]
fn orig(&self) -> Square
[src]
First square.
fn dest(&self) -> Square
[src]
Second square.
fn brush(&self) -> DrawBrush
[src]
Shape color.
fn is_circle(&self) -> bool
[src]
Check if the shape is a circle.
fn is_arrow(&self) -> bool
[src]
Check if the shape is an arrow.
Trait Implementations
impl Clone for DrawShape
[src]
fn clone(&self) -> DrawShape
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for DrawShape
[src]
impl PartialEq for DrawShape
[src]
fn eq(&self, __arg_0: &DrawShape) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DrawShape) -> bool
[src]
This method tests for !=
.