File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ //! Module which contains the snapshot/rollback functionality of the `ena` data structures.
2
+ //!
3
+ //! For most usecases this is just an internal implementation detail. However if many `ena`
4
+ //! data structures are used snapshotted simultaneously it is possible to use
5
+ //! `UnificationTableStorage`/`SnapshotVecStorage` instead and use a custom `UndoLogs<T>`
6
+ //! type capable of recording the actions of all used data structures.
7
+ //!
8
+ //! Since the `*Storage` variants do not have an undo log `with_log` must be called with the
9
+ //! unified log before any mutating actions.
10
+
1
11
/// A trait which allows actions (`T`) to be pushed which which allows the action to be undone at a
2
12
/// later time if needed
3
13
pub trait UndoLogs < T > {
Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ pub struct NoError {
161
161
/// <http://en.wikipedia.org/wiki/Disjoint-set_data_structure>.
162
162
#[ derive( PartialEq , Clone , Debug ) ]
163
163
pub struct VarValue < K : UnifyKey > {
164
- // FIXME pub
165
164
parent : K , // if equal to self, this is a root
166
165
value : K :: Value , // value assigned (only relevant to root)
167
166
rank : u32 , // max depth (only relevant to root)
You can’t perform that action at this time.
0 commit comments