pub struct MoveMut<'g> { /* private fields */ }Expand description
A mutable reference to a move in a game.
Implementations§
Source§impl<'g> MoveMut<'g>
Access API.
impl<'g> MoveMut<'g>
Access API.
pub const fn slot(&self) -> MoveSlot
pub const fn game(&self) -> &Game
pub const fn as_ref(&self) -> MoveRef<'_>
pub fn into_ref(self) -> MoveRef<'g>
pub fn set_intro(&mut self, intro: Option<Text>)
pub fn set_outro(&mut self, outro: Option<Text>)
pub fn update_commands(&mut self, update: impl FnOnce(&mut Vec<Command>))
pub fn update_nags(&mut self, update: impl FnOnce(&mut Vec<Nag>))
pub fn update_public(&mut self, update: impl FnOnce(&mut MovePublic))
pub fn comment(&self) -> Option<&Text>
pub fn evaluation(&self) -> Option<&Evaluation>
pub fn expanded(&self) -> bool
pub fn set_comment(&mut self, comment: Option<Text>)
pub fn set_evaluation(&mut self, evaluation: Option<Evaluation>)
pub fn set_expanded(&mut self, expanded: bool)
Source§impl<'g> MoveMut<'g>
Traversal API.
impl<'g> MoveMut<'g>
Traversal API.
pub fn previous(&self) -> PositionRef<'_>
pub fn previous_mut(&mut self) -> PositionMut<'_>
pub fn into_previous(self) -> PositionMut<'g>
pub const fn position(&self) -> PositionRef<'_>
pub fn position_mut(&mut self) -> PositionMut<'_>
pub fn into_position(self) -> PositionMut<'g>
Trait Implementations§
Auto Trait Implementations§
impl<'g> !UnwindSafe for MoveMut<'g>
impl<'g> Freeze for MoveMut<'g>
impl<'g> RefUnwindSafe for MoveMut<'g>
impl<'g> Send for MoveMut<'g>
impl<'g> Sync for MoveMut<'g>
impl<'g> Unpin for MoveMut<'g>
impl<'g> UnsafeUnpin for MoveMut<'g>
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