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

Generalize range hierarchy with a trait #3

Open
bvssvni opened this issue Feb 12, 2015 · 0 comments
Open

Generalize range hierarchy with a trait #3

bvssvni opened this issue Feb 12, 2015 · 0 comments

Comments

@bvssvni
Copy link
Member

bvssvni commented Feb 12, 2015

The basic idea is that Vec<T> points to Vec<U> where T is a range. Could use https://github.com/pistondevelopers/range

To make it type safe, the Range struct can be wrapped in a type that implements a trait Parent with an associated type set to U. Generic algorithms can then be written to operate on the relationship between parent and children. This could be added to piston-range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant