diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-06-25 18:55:52 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-06-25 18:55:52 +0200 |
commit | 6013177bfc5b3f3ee6b97abe36900fb22e8632e6 (patch) | |
tree | 45ffc32781a994f369d9f1a04f043e89b22f3763 /src/id.rs | |
parent | 6433a239741acd7f4825d76249509523b86953f7 (diff) |
Add minimal required interfaces
Diffstat (limited to 'src/id.rs')
-rw-r--r-- | src/id.rs | 18 |
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 */ + +} + |