pub enum GroundMsg {
Flip,
SetOrientation(Color),
SetPos(Pos),
SetBoard(Board),
UserMove(Square, Square, Option<Role>),
ShapesChanged(Vec<DrawShape>),
}
Expand description
Chessground events and messages.
Variants§
Flip
Flip the board.
SetOrientation(Color)
Set the board orientation.
SetPos(Pos)
Set up a position configuration.
SetBoard(Board)
Set up a board.
UserMove(Square, Square, Option<Role>)
Sent when the completed a piece drag or move.
ShapesChanged(Vec<DrawShape>)
Sent when shapes are added, removed or cleared.
Trait Implementations§
Source§impl DisplayVariant for GroundMsg
impl DisplayVariant for GroundMsg
Source§fn display_variant(&self) -> &'static str
fn display_variant(&self) -> &'static str
Formats the current variant of the enum.
Auto Trait Implementations§
impl Freeze for GroundMsg
impl RefUnwindSafe for GroundMsg
impl Send for GroundMsg
impl Sync for GroundMsg
impl Unpin for GroundMsg
impl UnwindSafe for GroundMsg
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