MCPcopy Create free account
hub / github.com/PerroEngine/Perro / get_unchecked

Method get_unchecked

perro_source/core/perro_structs/src/structs/matrix/mod.rs:311–315  ·  view source on GitHub ↗

Gets a cell without bounds checks. # Safety Caller must ensure `row < ROWS` and `col < COLS`.

(&self, row: usize, col: usize)

Source from the content-addressed store, hash-verified

309 ///
310 /// Caller must ensure `row < ROWS` and `col < COLS`.
311 pub unsafe fn get_unchecked(&self, row: usize, col: usize) -> &T {
312 debug_assert!(Self::in_bounds(row, col));
313 // SAFETY: caller must ensure row < ROWS and col < COLS.
314 unsafe { self.0.get_unchecked(row).get_unchecked(col) }
315 }
316
317 #[inline]
318 /// Gets a mutable cell without bounds checks.

Callers 15

matrix_unchecked_sumFunction · 0.80
matrix_unchecked_mapFunction · 0.80
get_flat_uncheckedMethod · 0.80
for_eachMethod · 0.80
zip_eachMethod · 0.80
zip_each_mutMethod · 0.80
for_neighbors_4Method · 0.80
for_neighbors_8Method · 0.80

Calls

no outgoing calls