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

Add PartialEq, Eq, and Hash for Row and Col structs #19

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

c123w
Copy link
Contributor

@c123w c123w commented Oct 7, 2024

I've found this useful when creating problems with a large number of variables or constraints, so that I can manage them and keep track of what they mean.

e.g. I have a foos: Vec<Foo> and I create a variable: Col with problem.add_integer_column() for each foo in foos. I'd like to be able to create a HashMap<Col, &Foo> so that I can keep track of which Foo corresponds to each Col.

@lovasoa lovasoa merged commit 492c9de into rust-or:main Oct 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants