Skip to content

Commit 5ae2cfa

Browse files
author
Markus Westerlind
committed
docL Document the undo_log module
1 parent ffbc9c3 commit 5ae2cfa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/undo_log.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
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+
111
/// A trait which allows actions (`T`) to be pushed which which allows the action to be undone at a
212
/// later time if needed
313
pub trait UndoLogs<T> {

src/unify/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ pub struct NoError {
161161
/// <http://en.wikipedia.org/wiki/Disjoint-set_data_structure>.
162162
#[derive(PartialEq, Clone, Debug)]
163163
pub struct VarValue<K: UnifyKey> {
164-
// FIXME pub
165164
parent: K, // if equal to self, this is a root
166165
value: K::Value, // value assigned (only relevant to root)
167166
rank: u32, // max depth (only relevant to root)

0 commit comments

Comments
 (0)