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

Implement PartialEq and Eq for Deque #520

Open
hicklin opened this issue Dec 9, 2024 · 0 comments · May be fixed by #521
Open

Implement PartialEq and Eq for Deque #520

hicklin opened this issue Dec 9, 2024 · 0 comments · May be fixed by #521

Comments

@hicklin
Copy link

hicklin commented Dec 9, 2024

Currently, Deque does not implement the PartialEq and Eq traits. This hinders structures that contain a Deque from being able to derive PartialEq and Eq. Equally, it requires library consumers to implement their own comparison algorithm. This algorithm can be implemented once in the library, improving the useability of the Deque.

The same algorithm used for the standard VecDeque could be implemented here.

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

Successfully merging a pull request may close this issue.

2 participants