pub struct Replayed<R: TurnRules> {
pub before: R,
pub command: R::Command,
pub events: Vec<R::Event>,
}Expand description
One past command, replayed (History::replay).
Fields§
§before: RThe game just before the command (the point a rewind to it goes back to).
command: R::CommandThe command.
events: Vec<R::Event>What it did (nothing, if the rules refused it).
Trait Implementations§
impl<R: Eq + TurnRules> Eq for Replayed<R>
impl<R: PartialEq + TurnRules> StructuralPartialEq for Replayed<R>
Auto Trait Implementations§
impl<R> Freeze for Replayed<R>
impl<R> RefUnwindSafe for Replayed<R>where
R: RefUnwindSafe,
<R as TurnRules>::Command: RefUnwindSafe,
<R as TurnRules>::Event: RefUnwindSafe,
impl<R> Send for Replayed<R>
impl<R> Sync for Replayed<R>
impl<R> Unpin for Replayed<R>
impl<R> UnsafeUnpin for Replayed<R>
impl<R> UnwindSafe for Replayed<R>
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