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

Method try_readonly

src/array.rs:1540–1546  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1538 }
1539
1540 fn try_readonly(&self) -> Result<PyReadonlyArray<'py, T, D>, BorrowError>
1541 where
1542 T: Element,
1543 D: Dimension,
1544 {
1545 self.clone().try_into_readonly()
1546 }
1547
1548 fn try_into_readwrite(self) -> Result<PyReadwriteArray<'py, T, D>, BorrowError>
1549 where

Callers 1

readonlyMethod · 0.80

Calls 2

try_into_readonlyMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected