-
Notifications
You must be signed in to change notification settings - Fork 430
feat!: Add VisitMap::unvisit as proposed in #610
#611
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
Conversation
VisitMap::unmark as proposed in #610VisitMap::unvisit as proposed in #610
src/visit/mod.rs
Outdated
| /// | ||
| /// Return **true** if this vertex was marked as visited at the time of unsetting it, false otherwise. | ||
| fn unvisit(&mut self, _a: N) -> bool { | ||
| unimplemented!("We don't know how to mark the node as unvisited.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be avoided to have a default implementation? Instead leave this out and let it be a breaking change, that's the principled approach at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we could totally get by without a default implementation. My initial idea was to not make this a breaking change but an additional feature that is backwards compatible. I don't have a strong preference but if breaking change is preferable, then lets go ahead with that.
Signed-off-by: Aalekh Patel <aalekh.gwpeck.7998@icloud.com>
Signed-off-by: Aalekh Patel <aalekh.gwpeck.7998@icloud.com>
|
This PR contains breaking changes to the public Rust API. cargo-semver-checks summary |
VisitMap::unvisit as proposed in #610VisitMap::unvisit as proposed in #610
A sufficient number of proposed changes have accumulated to combine them and publish a new major release numbered `0.8.0`. BREAKING CHANGE: This will require the user to provide extra type parameter in some APIs (Read more in #747). ## List of changes - [x] #747 The main innovation of the current release, the long-awaited feature that has become very relevant due to the transition of dependent projects to support `no_std`. - [x] #662 - [x] #611 - [x] #728 - [x] #686 - [x] #737 - [x] #720 - [x] #718 ## Note There are still a large number of PRs that we want to adopt in the near future, so we should expect at least a release of `0.8.1` soon after the completion of `0.8.0`. Thank you all for participating! --------- Co-authored-by: Agustin Borgna <agustinborgna@gmail.com>
Implement the
VisitMap::unvisitmethod as proposed in #610 .BREAKING CHANGE:
Add new method to existing trait.