Struct simics_api_sys::bindings::bufferinfo
source · #[repr(C)]pub struct bufferinfo {
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,
}
Expand description
buffer interface
Fields§
§buf: *mut c_void
§obj: *mut PyObject
owned reference
len: Py_ssize_t
§itemsize: Py_ssize_t
This is Py_ssize_t so it can be pointed to by strides in simple case.
readonly: c_int
§ndim: c_int
§format: *mut c_char
§shape: *mut Py_ssize_t
§strides: *mut Py_ssize_t
§suboffsets: *mut Py_ssize_t
§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
source§impl PartialEq for bufferinfo
impl PartialEq for bufferinfo
source§impl PartialOrd for bufferinfo
impl PartialOrd for bufferinfo
impl Copy for bufferinfo
impl Eq for bufferinfo
impl StructuralPartialEq for bufferinfo
Auto Trait Implementations§
impl Freeze for bufferinfo
impl RefUnwindSafe for bufferinfo
impl !Send for bufferinfo
impl !Sync for bufferinfo
impl Unpin for bufferinfo
impl UnwindSafe for bufferinfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)