From b2f869fe2b2261fc01d3263daebb39556fe04619 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sat, 23 Jul 2022 11:50:01 +0200 Subject: [PATCH] comment the function --- src/matrix.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/matrix.rs b/src/matrix.rs index 4dc1974..84fa965 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -978,6 +978,14 @@ impl Matrix { } } + /// Retrieves the immediate connections to adjacent cells and returns a list. + /// + /// Returns a vector with pairs of this content: + /// + /// ( + /// (this_cell_connection_dir, this_cell_node_io_index), + /// (other_cell_connection_dir, other_cell_node_io_index, (other_cell_x, other_cell_y)) + /// ) pub fn get_connections( &self, x: usize,