crdt_tree/treeid.rs
1// Copyright (c) 2022, MaidSafe.
2// All rights reserved.
3//
4// This SAFE Network Software is licensed under the BSD-3-Clause license.
5// Please see the LICENSE file for more details.
6
7use std::hash::Hash;
8
9/// `TreeId` trait. `TreeId` are unique identifiers for each node in a tree.
10pub trait TreeId: Eq + Clone + Hash {}
11impl<ID: Eq + Clone + Hash> TreeId for ID {}