Struct rusty_freecell::game::Move
source · struct Move {
from: usize,
to: usize,
}
Expand description
Represents a move in the game, indicating the source and destination stack indices on the game field.
Fields§
§from: usize
The index of the stack the card is moved from.
to: usize
The index of the stack the card is moved to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Move
impl RefUnwindSafe for Move
impl Send for Move
impl Sync for Move
impl Unpin for Move
impl UnwindSafe for Move
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