pub trait WorldCheckpointExt {
// Required methods
fn checkpoint<P: Pipeline>(&mut self, pipeline: P);
fn rollback<P: Pipeline>(
&mut self,
pipeline: P,
checkpoints: isize,
) -> Result<(), Error>;
fn rollback_with<P: Pipeline>(
&mut self,
pipeline: P,
checkpoints: isize,
registry: &TypeRegistry,
) -> Result<(), Error>;
}
Expand description
Extension trait that adds rollback checkpoint-related methods to Bevy’s World
.
Required Methods§
Sourcefn checkpoint<P: Pipeline>(&mut self, pipeline: P)
fn checkpoint<P: Pipeline>(&mut self, pipeline: P)
Creates a checkpoint for rollback and stores it in Checkpoints
.
Sourcefn rollback_with<P: Pipeline>(
&mut self,
pipeline: P,
checkpoints: isize,
registry: &TypeRegistry,
) -> Result<(), Error>
fn rollback_with<P: Pipeline>( &mut self, pipeline: P, checkpoints: isize, registry: &TypeRegistry, ) -> Result<(), Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.