Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree's new_* methods are MPT-specific #47

Open
gballet opened this issue Dec 2, 2019 · 0 comments
Open

Tree's new_* methods are MPT-specific #47

gballet opened this issue Dec 2, 2019 · 0 comments
Labels
question Further information is requested

Comments

@gballet
Copy link
Owner

gballet commented Dec 2, 2019

This is a tracker for @s1na's question on #44

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.

@gballet gballet added the question Further information is requested label Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant