pub type SnapshotVecStorage<D: SnapshotVecDelegate> = SnapshotVec<D, Vec<<D as SnapshotVecDelegate>::Value>, ()>;
Aliased Type§
struct SnapshotVecStorage<D: SnapshotVecDelegate> { /* private fields */ }
Implementations§
Source§impl<D: SnapshotVecDelegate> SnapshotVecStorage<D>
impl<D: SnapshotVecDelegate> SnapshotVecStorage<D>
Sourcepub fn with_log<'a, L>(
&'a mut self,
undo_log: L,
) -> SnapshotVec<D, &'a mut Vec<<D as SnapshotVecDelegate>::Value>, L>
pub fn with_log<'a, L>( &'a mut self, undo_log: L, ) -> SnapshotVec<D, &'a mut Vec<<D as SnapshotVecDelegate>::Value>, L>
Creates a SnapshotVec
using the undo_log
, allowing mutating methods to be called