pub struct Cursor { /* private fields */ }Expand description
Cursor over the main line of a linear game.
Implementations§
Source§impl Cursor
impl Cursor
pub fn new(game: Game) -> Self
pub fn into_inner(self) -> Game
pub fn game(&self) -> &Game
pub fn into_game(self) -> Game
pub fn node(&self) -> Node
pub fn state(&self) -> &State
pub fn set(&mut self, node: Node) -> bool
pub fn play(&self) -> Option<PlayRef<'_>>
pub fn options(&self) -> OptionsRef<'_>
pub fn previous(&self) -> Node
pub fn next(&self) -> Option<Node>
pub fn back(&mut self) -> bool
pub fn forward(&mut self) -> bool
pub fn start(&mut self)
pub fn end(&mut self)
Trait Implementations§
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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