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

Function buffer_readonly_error

src/buffer.rs:596–601  ·  view source on GitHub ↗
(py: Python)

Source from the content-addressed store, hash-verified

594}
595
596fn buffer_readonly_error(py: Python) -> PyResult<()> {
597 Err(err::PyErr::new::<exc::BufferError, _>(
598 py,
599 "Cannot write to read-only buffer.",
600 ))
601}
602
603impl PyDrop for PyBuffer {
604 #[inline]

Callers 1

copy_from_slice_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected