Skip to main content

Module buffer

Module buffer 

Source
Expand description

PyBuffer implementation

Structs§

PyBuffer
A typed form of PyUntypedBuffer.
PyBufferFlags
Type-safe buffer request flags. The const parameters encode which fields the exporter is required to fill.
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 std::cell::Cell, but only provides read-only access to the data.

Enums§

ElementType
Represents the type of a Python buffer element.

Traits§

Element
Trait implemented for possible element types of PyBuffer.
PyBufferFlagsType
Trait implemented by all PyBufferFlags instantiations.