[][src]Struct pyo3::ffi::Py_buffer

#[repr(C)]pub struct Py_buffer {
    pub buf: *mut c_void,
    pub obj: *mut PyObject,
    pub len: Py_ssize_t,
    pub itemsize: Py_ssize_t,
    pub readonly: c_int,
    pub ndim: c_int,
    pub format: *mut c_char,
    pub shape: *mut Py_ssize_t,
    pub strides: *mut Py_ssize_t,
    pub suboffsets: *mut Py_ssize_t,
    pub internal: *mut c_void,
}

Fields

buf: *mut c_voidobj: *mut PyObjectlen: Py_ssize_titemsize: Py_ssize_treadonly: c_intndim: c_intformat: *mut c_charshape: *mut Py_ssize_tstrides: *mut Py_ssize_tsuboffsets: *mut Py_ssize_tinternal: *mut c_void

Implementations

impl Py_buffer[src]

pub const fn new() -> Self[src]

Trait Implementations

impl Clone for Py_buffer[src]

impl Copy for Py_buffer[src]

Auto Trait Implementations

impl RefUnwindSafe for Py_buffer

impl !Send for Py_buffer

impl !Sync for Py_buffer

impl Unpin for Py_buffer

impl UnwindSafe for Py_buffer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.