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

Method get_mut

perro_source/core/perro_structs/src/structs/matrix/mod.rs:285–291  ·  view source on GitHub ↗
(&mut self, row: usize, col: usize)

Source from the content-addressed store, hash-verified

283
284 #[inline]
285 pub fn get_mut(&mut self, row: usize, col: usize) -> Option<&mut T> {
286 if row < ROWS && col < COLS {
287 Some(&mut self.0[row][col])
288 } else {
289 None
290 }
291 }
292
293 #[inline]
294 pub fn get_flat(&self, index: usize) -> Option<&T> {

Callers 15

set_value_at_pathFunction · 0.45
add_value_at_pathFunction · 0.45
remove_value_at_pathFunction · 0.45
set_nested_valueFunction · 0.45
add_nested_valueFunction · 0.45
remove_nested_valueFunction · 0.45
setMethod · 0.45
build_tracks_and_eventsFunction · 0.45
set_openMethod · 0.45
toggle_openMethod · 0.45
set_clip_by_indexMethod · 0.45

Calls

no outgoing calls

Tested by 6

set_value_at_pathFunction · 0.36
add_value_at_pathFunction · 0.36
remove_value_at_pathFunction · 0.36
set_nested_valueFunction · 0.36
add_nested_valueFunction · 0.36
remove_nested_valueFunction · 0.36