Check if a flat layer index is the first layer of its stack.
(&self, flat_idx: usize)
| 113 | |
| 114 | /// Check if a flat layer index is the first layer of its stack. |
| 115 | pub fn is_stack_first(&self, flat_idx: usize) -> bool { |
| 116 | let (_, layer_in_stack) = self.flat_to_stack(flat_idx); |
| 117 | layer_in_stack == 0 |
| 118 | } |
| 119 | |
| 120 | /// Check if a flat layer index is the last layer of its stack. |
| 121 | pub fn is_stack_last(&self, flat_idx: usize) -> bool { |
nothing calls this directly
no test coverage detected