penumbra_tct/internal/complete/node/children/
shape.rs

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! Every possible shape of a non-empty quad-tree node, enumerated as 15 distinct structs.

#![allow(non_camel_case_types, clippy::upper_case_acronyms)]

use crate::prelude::*;

/// Children of a node having children in the positions: 3.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct ___C<Child>(pub Hash, pub Hash, pub Hash, pub Child);

/// Children of a node having children in the positions: 2.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct __C_<Child>(pub Hash, pub Hash, pub Child, pub Hash);

/// Children of a node having children in the positions: 2, 3.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct __CC<Child>(pub Hash, pub Hash, pub Child, pub Child);

/// Children of a node having children in the positions: 1.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct _C__<Child>(pub Hash, pub Child, pub Hash, pub Hash);

/// Children of a node having children in the positions: 1, 3.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct _C_C<Child>(pub Hash, pub Child, pub Hash, pub Child);

/// Children of a node having children in the positions: 1, 2.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct _CC_<Child>(pub Hash, pub Child, pub Child, pub Hash);

/// Children of a node having children in the positions: 1, 2, 3.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct _CCC<Child>(pub Hash, pub Child, pub Child, pub Child);

/// Children of a node having children in the positions: 0.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct C___<Child>(pub Child, pub Hash, pub Hash, pub Hash);

/// Children of a node having children in the positions: 0, 3.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct C__C<Child>(pub Child, pub Hash, pub Hash, pub Child);

/// Children of a node having children in the positions: 0, 2.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct C_C_<Child>(pub Child, pub Hash, pub Child, pub Hash);

/// Children of a node having children in the positions: 0, 2, 3.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct C_CC<Child>(pub Child, pub Hash, pub Child, pub Child);

/// Children of a node having children in the positions: 0, 1.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct CC__<Child>(pub Child, pub Child, pub Hash, pub Hash);

/// Children of a node having children in the positions: 0, 1, 3.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct CC_C<Child>(pub Child, pub Child, pub Hash, pub Child);

/// Children of a node having children in the positions: 0, 1, 2.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct CCC_<Child>(pub Child, pub Child, pub Child, pub Hash);

/// Children of a node having children in the positions: 0, 1, 2, 3.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct CCCC<Child>(pub Child, pub Child, pub Child, pub Child);