Skip to main content

CursorRef

Type Alias CursorRef 

Source
pub type CursorRef<'g> = Cursor<&'g Game>;
Expand description

A cursor over an immutably borrowed game.

Aliased Type§

pub struct CursorRef<'g> { /* private fields */ }

Implementations§

Source§

impl<'g> CursorRef<'g>

Access API.

Source

pub fn into_game(self) -> &'g Game

Source

pub fn into_position(self) -> PositionRef<'g>

Source

pub fn into_play(self) -> Result<MoveRef<'g>>