summaryrefslogtreecommitdiffstats
path: root/src/id.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/id.rs')
-rw-r--r--src/id.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/id.rs b/src/id.rs
new file mode 100644
index 0000000..018ae60
--- /dev/null
+++ b/src/id.rs
@@ -0,0 +1,18 @@
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+//
+
+use std::fmt::Debug;
+
+/// An "ID" is an object that can be used to uniquely identify a node in the DAG.
+///
+/// In git-speak, this would be a SHA1 hash.
+///
+pub trait Id : Clone + Debug + PartialEq + Eq {
+
+ /* empty */
+
+}
+