Enum advent_of_code_2021::day_12::CaveType [−][src]
enum CaveType {
START,
END,
SMALL,
LARGE,
}Expand description
Track the four possible node types that dictate how they can be visited
Variants
START
First node in all valid paths, cannot be revisited
END
Last node in all valid paths, path instantly ends on visiting so implicitly can’t be revisited
SMALL
Can only be visited once, except in part two where a path can optionally revisit exactly one small node somewhere along its route
LARGE
Can be revisited any number of times, regardless of mode
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CaveType
impl UnwindSafe for CaveType
Blanket Implementations
Mutably borrows from an owned value. Read more
