fn password( input: &Input, handle_none: impl Fn(Point, Point) -> (Point, Point), ) -> i32
Common code shared between part one and two. The handle_none closure defines how to transition when we leave an edge.
handle_none