pub struct ScriptedRng { /* private fields */ }Expand description
A BattleRng that replays a fixed script of bytes, then repeats the last
byte (or 0 if empty) forever.
This makes driver behaviour fully deterministic in tests: a test can pin the exact bytes the driver will observe and assert on the resulting event stream, proving turn-order ties, gates, and residuals resolve as expected.
Implementations§
Trait Implementations§
Source§impl BattleRng for ScriptedRng
impl BattleRng for ScriptedRng
Source§impl Clone for ScriptedRng
impl Clone for ScriptedRng
Source§fn clone(&self) -> ScriptedRng
fn clone(&self) -> ScriptedRng
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScriptedRng
impl RefUnwindSafe for ScriptedRng
impl Send for ScriptedRng
impl Sync for ScriptedRng
impl Unpin for ScriptedRng
impl UnsafeUnpin for ScriptedRng
impl UnwindSafe for ScriptedRng
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