Skip to content

Move trait bounds to the implementations that require them. #57

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

Open
ckaran opened this issue Feb 8, 2021 · 0 comments
Open

Move trait bounds to the implementations that require them. #57

ckaran opened this issue Feb 8, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ckaran
Copy link
Collaborator

ckaran commented Feb 8, 2021

I currently have the KeyTrait type, which is a set of trait bounds on types that the RedBlackTreeNode requires on all keys. However, that is excessively tight. Instead of putting bounds on the type, put bounds on the implementation blocks. This will broaden the set of object types that are able to use the RedBlackTreeNode type.

Originally posted by @ckaran in #54 (comment)

@ckaran ckaran self-assigned this Feb 8, 2021
@ckaran ckaran added the enhancement New feature or request label Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant