MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / drop

Method drop

src/buffer.rs:611–614  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

609
610impl Drop for PyBuffer {
611 fn drop(&mut self) {
612 let _gil_guard = Python::acquire_gil();
613 unsafe { ffi::PyBuffer_Release(&mut *self.0) }
614 }
615}
616
617/// Like `std::mem::cell`, but only provides read-only access to the data.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected