pub struct MoveEnc {
pub encoding: u8,
pub piece: char,
pub num: i32,
pub forward: i32,
pub right: i32,
}Expand description
A struct representing an encoded chess move.
This struct is used to store information about a chess move, including the move encoding, the piece involved, the number of moves, and the directions of the move (forward and right).
Fields§
§encoding: u8An u8 representing the move encoding.
piece: charA char representing the chess piece involved in the move.
num: i32An i32 representing the number of moves.
forward: i32An i32 representing the forward direction of the move.
right: i32An i32 representing the right direction of the move.
Auto Trait Implementations§
impl Freeze for MoveEnc
impl RefUnwindSafe for MoveEnc
impl Send for MoveEnc
impl Sync for MoveEnc
impl Unpin for MoveEnc
impl UnsafeUnpin for MoveEnc
impl UnwindSafe for MoveEnc
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more