pub struct AvailableTurn {
pub src: String,
pub dst: String,
pub piece: String,
pub captured: Option<String>,
/* private fields */
}Expand description
Data which describes the turn that can be played.
In case of a castling turn, king’s source and destination squares will be provided.
Exact turn written in the algebraic chess notation format contains spoilers,
so it should be fetched via get_turn function.
Fields§
§src: StringSource square
dst: StringDestination square
piece: StringPiece making the move
captured: Option<String>Captured piece
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AvailableTurn
impl RefUnwindSafe for AvailableTurn
impl Send for AvailableTurn
impl Sync for AvailableTurn
impl Unpin for AvailableTurn
impl UnwindSafe for AvailableTurn
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