pub struct Game {
pub roster: Roster,
pub tags: Vec<Tag>,
pub intro: Option<Text>,
pub outcome: Outcome,
/* private fields */
}Expand description
A game of chess, including variations and annotations.
Fields§
§roster: Roster§intro: Option<Text>§outcome: OutcomeImplementations§
Source§impl Game
impl Game
pub fn new(position: Position, mode: Mode) -> Self
pub fn chess(position: Position) -> Option<Self>
pub fn freestyle(position: Position) -> Self
pub fn start_options_mut(&mut self) -> OptionsMut<'_>
pub fn cursor(self) -> Cursor
pub fn options(&self, node: Node) -> Option<OptionsRef<'_>>
pub fn options_mut(&mut self, node: Node) -> Option<OptionsMut<'_>>
Trait Implementations§
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 UnsafeUnpin 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