1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) 2022, MaidSafe.
// All rights reserved.
//
// This SAFE Network Software is licensed under the BSD-3-Clause license.
// Please see the LICENSE file for more details.
use ;
use ;
use ;
/// `TreeNode` is a node that is stored in a `Tree`.
///
/// Logically, each `TreeNode` consists of a triple `(parent_id, metadata, child_id)`.
/// However, in this implementation, the `child_id` is stored as the
/// key in `Tree::triples HashMap<ID, TreeNode>`