Closed RazrFalcon closed 6 years ago
The non-derive implementations on Tree
are to handle the id
. The other ones, mostly on NodeId
, are because the implementations don't actually depend on T
. For example, the code has impl<T> Clone for NodeId<T>
, but #[derive(Clone)]
would generate impl<T: Clone> Clone for NodeId<T>
.
I see. Makes sense.
It will simplify the code a lot.