These new_* methods seem to be specific to the MPT tree. Is there maybe a way in Rust to only define them on Node and then cast a Tree to a Node when these methods are needed?
AFAIK, there isn't. This being said, indeed a difference should be made, e.g. by introducing an inherited TreeWithExtension : Tree trait.
This is a tracker for @s1na's question on #44
AFAIK, there isn't. This being said, indeed a difference should be made, e.g. by introducing an inherited
TreeWithExtension : Tree
trait.