Type Alias simics_api_sys::Py_buffer
source · pub type Py_buffer = bufferinfo;
Expand description
buffer interface
Aliased Type§
struct Py_buffer {
pub buf: *mut c_void,
pub obj: *mut _object,
pub len: isize,
pub itemsize: isize,
pub readonly: i32,
pub ndim: i32,
pub format: *mut i8,
pub shape: *mut isize,
pub strides: *mut isize,
pub suboffsets: *mut isize,
pub internal: *mut c_void,
}
Fields§
§buf: *mut c_void
§obj: *mut _object
owned reference
len: isize
§itemsize: isize
This is Py_ssize_t so it can be pointed to by strides in simple case.
readonly: i32
§ndim: i32
§format: *mut i8
§shape: *mut isize
§strides: *mut isize
§suboffsets: *mut isize
§internal: *mut c_void
Trait Implementations
source§impl Clone for bufferinfo
impl Clone for bufferinfo
source§fn clone(&self) -> bufferinfo
fn clone(&self) -> bufferinfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for bufferinfo
impl Debug for bufferinfo
source§impl Default for bufferinfo
impl Default for bufferinfo
source§impl Hash for bufferinfo
impl Hash for bufferinfo
source§impl Ord for bufferinfo
impl Ord for bufferinfo
source§fn cmp(&self, other: &bufferinfo) -> Ordering
fn cmp(&self, other: &bufferinfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more