-
Notifications
You must be signed in to change notification settings - Fork 441
Closed
Labels
F-trait-reworkFeature: Trait ReworkFeature: Trait Rework
Description
The name is very WIP, but to allow for greater flexibility, instead of implementing Visitable on maps we create a new trait that is instead implemented on the set instead. The name is currently very tbd and likely to change.
pub enum VisitationStatus {
AlreadyVisited,
NewlyVisited
}
// TODO: name is not great
pub trait VisitationMap<G> {
type Index;
fn new(graph: &G) -> Self;
fn visit(&mut self, node: Self::Index) -> VisitationStatus;
fn is_visited(&self, node: Self::Index) -> bool;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
F-trait-reworkFeature: Trait ReworkFeature: Trait Rework