joy.
What the fuck is happening?
…is a fair question, considering.
See, the thing with match is, it lets you do pattern matching. As opposed to if, which just does equality comparison.
That means with match, we can do something like this:
enum Node<T> {
Left(T),
Right(T),
}
impl<T> Node<T> {
fn get(&self) -> &T {
match self