pub struct Game { /* private fields */ }
Available on crate feature
alloc
only.Expand description
A record of a game. A position and how a game is resolved.
Implementations§
Source§impl Game
impl Game
Source#[export_name = "Game_position"]pub extern "C" fn position(&self) -> &Position
#[export_name = "Game_position"]pub extern "C" fn position(&self) -> &Position
Returns the inner position.
Source#[export_name = "Game_resolve"]pub extern "C" fn resolve(&mut self, resolution: GameResolution)
#[export_name = "Game_resolve"]pub extern "C" fn resolve(&mut self, resolution: GameResolution)
Sets the resolution of this game.
Source#[export_name = "Game_unresolve"]pub extern "C" fn unresolve(&mut self)
#[export_name = "Game_unresolve"]pub extern "C" fn unresolve(&mut self)
Unsets the resolution of this game.
Sourcepub fn resolution(&self) -> Option<GameResolution>
pub fn resolution(&self) -> Option<GameResolution>
Returns the resolution of this game.
Source#[no_mangle]pub extern "C" fn Game_resolution(&self) -> OptionGameResolution
#[no_mangle]pub extern "C" fn Game_resolution(&self) -> OptionGameResolution
C interface to Game::resolution
.
Trait Implementations§
Source§impl Ord for Game
Available on crate feature ord
only.
impl Ord for Game
Available on crate feature
ord
only.Source§impl PartialOrd for Game
Available on crate feature ord
only.
impl PartialOrd for Game
Available on crate feature
ord
only.impl Eq for Game
impl StructuralPartialEq for Game
Auto Trait Implementations§
impl Freeze for Game
impl RefUnwindSafe for Game
impl Send for Game
impl Sync for Game
impl Unpin for Game
impl UnwindSafe for Game
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