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

Function release

src/borrow/shared.rs:201–207  ·  view source on GitHub ↗
(py: Python<'py>, array: *mut PyArrayObject)

Source from the content-addressed store, hash-verified

199}
200
201pub fn release<'py>(py: Python<'py>, array: *mut PyArrayObject) {
202 let shared = get_or_insert_shared(py).expect("Internal borrow checking API error");
203
204 unsafe {
205 (shared.release)(shared.flags, array);
206 }
207}
208
209pub fn release_mut<'py>(py: Python<'py>, array: *mut PyArrayObject) {
210 let shared = get_or_insert_shared(py).expect("Internal borrow checking API error");

Callers 1

dropMethod · 0.85

Calls 1

get_or_insert_sharedFunction · 0.85

Tested by

no test coverage detected