pub struct SnapshotRestore { /* private fields */ }Expand description
Safe-ID mappings published by a successful in-place restore.
Implementations§
Source§impl SnapshotRestore
impl SnapshotRestore
Sourcepub fn body_mappings(
&self,
) -> impl ExactSizeIterator<Item = (BodyId, BodyId)> + '_
pub fn body_mappings( &self, ) -> impl ExactSizeIterator<Item = (BodyId, BodyId)> + '_
Iterates over every body ID mapping from the captured snapshot to the restored world.
Sourcepub fn shape_mappings(
&self,
) -> impl ExactSizeIterator<Item = (ShapeId, ShapeId)> + '_
pub fn shape_mappings( &self, ) -> impl ExactSizeIterator<Item = (ShapeId, ShapeId)> + '_
Iterates over every shape ID mapping from the captured snapshot to the restored world.
Sourcepub fn joint_mappings(
&self,
) -> impl ExactSizeIterator<Item = (JointId, JointId)> + '_
pub fn joint_mappings( &self, ) -> impl ExactSizeIterator<Item = (JointId, JointId)> + '_
Iterates over every joint ID mapping from the captured snapshot to the restored world.
Sourcepub fn chain_mappings(
&self,
) -> impl ExactSizeIterator<Item = (ChainId, ChainId)> + '_
pub fn chain_mappings( &self, ) -> impl ExactSizeIterator<Item = (ChainId, ChainId)> + '_
Iterates over every chain ID mapping from the captured snapshot to the restored world.
pub fn body_id(&self, snapshot_id: BodyId) -> Option<BodyId>
pub fn shape_id(&self, snapshot_id: ShapeId) -> Option<ShapeId>
pub fn joint_id(&self, snapshot_id: JointId) -> Option<JointId>
pub fn chain_id(&self, snapshot_id: ChainId) -> Option<ChainId>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnapshotRestore
impl RefUnwindSafe for SnapshotRestore
impl Send for SnapshotRestore
impl Sync for SnapshotRestore
impl Unpin for SnapshotRestore
impl UnsafeUnpin for SnapshotRestore
impl UnwindSafe for SnapshotRestore
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