pub trait PyBufferProtocol<'p>: PyClass {
    fn bf_getbuffer(
        slf: PyRefMut<'_, Self>,
        view: *mut Py_buffer,
        flags: c_int
    ) -> Self::Result
    where
        Self: PyBufferGetBufferProtocol<'p>
; fn bf_releasebuffer(
        slf: PyRefMut<'_, Self>,
        view: *mut Py_buffer
    ) -> Self::Result
    where
        Self: PyBufferReleaseBufferProtocol<'p>
; }
👎 Deprecated since 0.16.0:

prefer #[pymethods] to #[pyproto]

Expand description

Buffer protocol interface

For more information check buffer protocol c-api.

Required Methods

👎 Deprecated since 0.16.0:

prefer #[pymethods] to #[pyproto]

👎 Deprecated since 0.16.0:

prefer #[pymethods] to #[pyproto]

Implementors