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

Function slice_length_error

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

Source from the content-addressed store, hash-verified

580}
581
582fn slice_length_error(py: Python) -> PyResult<()> {
583 Err(err::PyErr::new::<exc::BufferError, _>(
584 py,
585 "Slice length does not match buffer length.",
586 ))
587}
588
589fn incompatible_format_error(py: Python) -> PyResult<()> {
590 Err(err::PyErr::new::<exc::BufferError, _>(

Callers 2

copy_to_slice_implMethod · 0.85
copy_from_slice_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected