Skip to main content

Module buffer

Module buffer 

Source
Expand description

PyBuffer implementation

Structs§

PyBuffer
A typed form of PyUntypedBuffer.
PyBufferRequest
Type-safe buffer request. The state parameter is intentionally hidden behind this wrapper so the internal encoding can evolve.
PyBufferView
A typed form of PyUntypedBufferView. Not constructible directly — use PyBufferView::with() or PyBufferView::with_flags().
PyUntypedBuffer
Allows access to the underlying buffer used by a python object such as bytes, bytearray or array.array.
PyUntypedBufferView
Stack-allocated untyped buffer view.
ReadOnlyCell
Like core::cell::Cell, but only provides read-only access to the data.

Enums§

ElementType
Represents the type of a Python buffer element.
PyBufferContiguity
Contiguity constraint encoded by a PyBufferRequest.

Traits§

Element
Trait implemented for possible element types of PyBuffer.