MCPcopy Create free account
hub / github.com/PyO3/rust-numpy / get_mut

Method get_mut

src/array.rs:1500–1507  ·  view source on GitHub ↗
(&self, index: impl NpyIndex<Dim = D>)

Source from the content-addressed store, hash-verified

1498
1499 #[inline(always)]
1500 unsafe fn get_mut(&self, index: impl NpyIndex<Dim = D>) -> Option<&mut T>
1501 where
1502 T: Element,
1503 D: Dimension,
1504 {
1505 let ptr = get_raw(self, index)?;
1506 Some(&mut *ptr)
1507 }
1508
1509 fn get_owned<Idx>(&self, index: Idx) -> Option<T>
1510 where

Callers

nothing calls this directly

Calls 1

get_rawFunction · 0.85

Tested by

no test coverage detected