Struct simics_api_sys::bindings::py_opaque_type_t
source · #[repr(C)]pub struct py_opaque_type_t {
pub ob_base: PyObject,
pub malloced: bool,
pub free_fields: bool,
pub mutable: bool,
pub data: *mut c_void,
pub object: *mut conf_object_t,
pub type_: *mut opaque_type_t,
}
Expand description
py_opaque_type_t is used to wrap C structures whose contents cannot be accessed by Python without getter/setter functions
Fields§
§ob_base: PyObject
§malloced: bool
true if struct should be freed at destruction
free_fields: bool
true if fields should be freed at destruction
mutable: bool
true if data is allowed to change
data: *mut c_void
§object: *mut conf_object_t
used for interfaces only
type_: *mut opaque_type_t
Trait Implementations§
source§impl Clone for py_opaque_type_t
impl Clone for py_opaque_type_t
source§fn clone(&self) -> py_opaque_type_t
fn clone(&self) -> py_opaque_type_t
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 py_opaque_type_t
impl Debug for py_opaque_type_t
source§impl Default for py_opaque_type_t
impl Default for py_opaque_type_t
source§impl Hash for py_opaque_type_t
impl Hash for py_opaque_type_t
source§impl Ord for py_opaque_type_t
impl Ord for py_opaque_type_t
source§fn cmp(&self, other: &py_opaque_type_t) -> Ordering
fn cmp(&self, other: &py_opaque_type_t) -> 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 py_opaque_type_t
impl PartialEq for py_opaque_type_t
source§impl PartialOrd for py_opaque_type_t
impl PartialOrd for py_opaque_type_t
impl Copy for py_opaque_type_t
impl Eq for py_opaque_type_t
impl StructuralPartialEq for py_opaque_type_t
Auto Trait Implementations§
impl Freeze for py_opaque_type_t
impl RefUnwindSafe for py_opaque_type_t
impl !Send for py_opaque_type_t
impl !Sync for py_opaque_type_t
impl Unpin for py_opaque_type_t
impl UnwindSafe for py_opaque_type_t
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
)