fn clear(&mut self) {
    self
      .layout
      .iter_mut()
      .filter(|c| c.is_vacant())
      .for_each(|c| {
        *c = Cell::Vacant {
          previous: Point::default(),
          dist: Cell::MAX,
        }
      });
  }
/** Reset distances stored in vacant cells to default */
Reset distances stored in vacant cells to default
Reset distances stored in vacant cells to default
fn clear(&mut self) {
    self
      .layout
      .iter_mut()
      .filter(|c| c.is_vacant())
      .for_each(|c| {
        *c = Cell::Vacant {
          previous: Point::default(),
          dist: Cell::MAX,
        }
      });
  }
fn clear ( & mut self ) { self . layout . iter_mut ( ) . filter ( | c | c . is_vacant ( ) ) . for_each ( | c | { * c = Cell :: Vacant { previous : Point :: default ( ) , dist : Cell :: MAX , } } ) ; }
Reset distances stored in vacant cells to default
Reset distances stored in vacant cells to default
&mut self