MCPcopy Create free account
hub / github.com/daniel-e/rustml / get_mut

Method get_mut

src/matrix.rs:563–569  ·  view source on GitHub ↗

TODO test

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

Source from the content-addressed store, hash-verified

561
562 // TODO test
563 pub fn get_mut(&mut self, row: usize, col: usize) -> Option<&mut T> {
564
565 match self.idx(row, col) {
566 None => None,
567 Some(p) => self.data.get_mut(p)
568 }
569 }
570
571 /// Returns the row at index `n` (starting at zero) in O(1).
572 ///

Callers 5

visitMethod · 0.80
set_clusterMethod · 0.80
setMethod · 0.80
test_get_mutFunction · 0.80
set_paramsMethod · 0.80

Calls 1

idxMethod · 0.80

Tested by 1

test_get_mutFunction · 0.64