Method
has_neighbor
(&self, direction: DirectedAxis)
Source from the content-addressed store, hash-verified
| 1018 | /// Returns if the origin point has a valid neighbor following the specified directed axis |
| 1019 | #[inline(always)] |
| 1020 | pub fn has_neighbor(&self, direction: DirectedAxis) -> bool { |
| 1021 | self.neighbors.get(&direction).is_some() |
| 1022 | } |
| 1023 | |
| 1024 | /// Get a specific neighbor in the given direction from the origin point of the neighborhood |
| 1025 | #[inline(always)] |
Callers
nothing calls this directly
Tested by
no test coverage detected