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

Function release_mut

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

Source from the content-addressed store, hash-verified

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");
211
212 unsafe {
213 (shared.release_mut)(shared.flags, array);
214 }
215}
216
217#[derive(Clone, Copy, PartialEq, Eq, Hash)]
218struct BorrowKey {

Callers 2

resizeMethod · 0.85
dropMethod · 0.85

Calls 1

get_or_insert_sharedFunction · 0.85

Tested by

no test coverage detected