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

source§

fn clone(&self) -> bufferinfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for bufferinfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for bufferinfo

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Hash for bufferinfo

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for bufferinfo

source§

fn cmp(&self, other: &bufferinfo) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for bufferinfo

source§

fn eq(&self, other: &bufferinfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for bufferinfo

source§

fn partial_cmp(&self, other: &bufferinfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for bufferinfo

source§

impl Eq for bufferinfo

source§

impl StructuralPartialEq for bufferinfo