Struct simics_api_sys::opaque_type
source · #[repr(C)]pub struct opaque_type {
pub pytype: *mut PyTypeObject,
pub name: *const c_char,
pub pyspec: PyType_Spec,
pub size: c_uint,
pub members: *const struct_member_t,
pub nmembers: c_int,
pub is_interface: bool,
pub get_dict: Option<unsafe extern "C" fn(c_struct: *mut c_void, ot: *mut opaque_type) -> *mut PyObject>,
}
Fields§
§pytype: *mut PyTypeObject
§name: *const c_char
§pyspec: PyType_Spec
§size: c_uint
§members: *const struct_member_t
§nmembers: c_int
§is_interface: bool
§get_dict: Option<unsafe extern "C" fn(c_struct: *mut c_void, ot: *mut opaque_type) -> *mut PyObject>
Trait Implementations§
source§impl Clone for opaque_type
impl Clone for opaque_type
source§fn clone(&self) -> opaque_type
fn clone(&self) -> opaque_type
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 opaque_type
impl Debug for opaque_type
source§impl Default for opaque_type
impl Default for opaque_type
source§impl Hash for opaque_type
impl Hash for opaque_type
source§impl Ord for opaque_type
impl Ord for opaque_type
source§fn cmp(&self, other: &opaque_type) -> Ordering
fn cmp(&self, other: &opaque_type) -> 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 opaque_type
impl PartialEq for opaque_type
source§impl PartialOrd for opaque_type
impl PartialOrd for opaque_type
impl Copy for opaque_type
impl Eq for opaque_type
impl StructuralPartialEq for opaque_type
Auto Trait Implementations§
impl Freeze for opaque_type
impl RefUnwindSafe for opaque_type
impl !Send for opaque_type
impl !Sync for opaque_type
impl Unpin for opaque_type
impl UnwindSafe for opaque_type
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
)