MCPcopy Index your code
hub / github.com/PyO3/rust-numpy / item

Method item

src/array.rs:1344–1349  ·  view source on GitHub ↗

Get the single element of a zero-dimensional array. See [`inner`][crate::inner] for an example.

(&self)

Source from the content-addressed store, hash-verified

1342 ///
1343 /// See [`inner`][crate::inner] for an example.
1344 fn item(&self) -> T
1345 where
1346 T: Element + Copy,
1347 {
1348 unsafe { *self.data() }
1349 }
1350}
1351
1352#[inline(always)]

Callers

nothing calls this directly

Implementers 1

array.rssrc/array.rs

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected