Available on
Py_3_11 or non-Py_LIMITED_API only.Expand description
PyBuffer implementation
Re-exportsยง
use crate::inspect::PyStaticExpr;๐experimental-inspectuse crate::inspect::type_hint_identifier;๐experimental-inspectuse crate::Borrowed;๐use crate::Bound;๐use crate::PyErr;๐use crate::FromPyObject;๐use crate::FromPyObject;๐use crate::PyAny;๐use crate::PyResult;๐use crate::Python;๐use crate::err;๐use crate::exceptions::PyBufferError;๐use crate::ffi;๐use core::ffi::c_char;๐use core::ffi::c_int;๐use core::ffi::c_long;๐use core::ffi::c_longlong;๐use core::ffi::c_schar;๐use core::ffi::c_short;๐use core::ffi::c_uchar;๐use core::ffi::c_uint;๐use core::ffi::c_ulong;๐use core::ffi::c_ulonglong;๐use core::ffi::c_ushort;๐use core::ffi::c_void;๐use core::marker::PhantomData;๐use core::marker::PhantomPinned;๐use core::pin::Pin;๐use core::ptr::NonNull;๐use core::cell;๐use core::mem;๐use core::ptr;๐use core::slice;๐use core::ffi::CStr;๐use core::fmt::Debug;๐use core::fmt::Debug;๐use crate::platform::prelude::*;๐
Macrosยง
- impl_
element ๐
Structsยง
- PyBuffer
- A typed form of
PyUntypedBuffer. - PyUntyped
Buffer - Allows access to the underlying buffer used by a python object such as
bytes,bytearrayorarray.array. - RawBuffer ๐
- Wrapper around
ffi::Py_bufferto be!Unpin. - Read
Only Cell - Like core::cell::Cell, but only provides read-only access to the data.
Enumsยง
- Element
Type - Represents the type of a Python buffer element.
Traitsยง
- Element
- Trait implemented for possible element types of
PyBuffer.
Functionsยง
- debug_
buffer ๐ - is_
matching_ ๐endian Little-endian - native_
element_ ๐type_ from_ type_ char - standard_
element_ ๐type_ from_ type_ char