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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//! # Honey tree data
//!
//! Module that contains structs and data related to honey trees.

///
/// Constant that holds all existing honey trees.
///
pub const HONEY_TREES: [HoneyTree; 21] = [
    HoneyTree {
        location: "Route 205 south",
    },
    HoneyTree {
        location: "Route 205 north",
    },
    HoneyTree {
        location: "Route 206",
    },
    HoneyTree {
        location: "Route 207",
    },
    HoneyTree {
        location: "Route 208",
    },
    HoneyTree {
        location: "Route 209",
    },
    HoneyTree {
        location: "Route 210 south",
    },
    HoneyTree {
        location: "Route 210 north",
    },
    HoneyTree {
        location: "Route 211 east",
    },
    HoneyTree {
        location: "Route 212 north",
    },
    HoneyTree {
        location: "Route 212 south",
    },
    HoneyTree {
        location: "Route 213",
    },
    HoneyTree {
        location: "Route 214",
    },
    HoneyTree {
        location: "Route 215",
    },
    HoneyTree {
        location: "Route 218",
    },
    HoneyTree {
        location: "Route 221",
    },
    HoneyTree {
        location: "Route 222",
    },
    HoneyTree {
        location: "Valley Windworks",
    },
    HoneyTree {
        location: "Eterna Forest (exterior)",
    },
    HoneyTree {
        location: "Fuego Ironworks",
    },
    HoneyTree {
        location: "Floaroma Meadow",
    },
];

///
/// Struct that holds a honey tree.
/// A honey tree is defined by is in-game location.
///
/// # Examples
/// ```
/// use honeytree_calc::htree::tree::HoneyTree;
/// let my_tree = HoneyTree {location: "Route 201"};
/// println!("{}", my_tree.location);
/// ```
pub struct HoneyTree<'a> {
    pub location: &'a str,
}