Struct simics_api_sys::_object
source · #[repr(C)]pub struct _object {
pub ob_refcnt: Py_ssize_t,
pub ob_type: *mut PyTypeObject,
}
Expand description
Nothing is actually declared to be a PyObject, but every pointer to a Python object can be cast to a PyObject*. This is inheritance built by hand. Similarly every pointer to a variable-size Python object can, in addition, be cast to PyVarObject*.
Fields§
§ob_refcnt: Py_ssize_t
§ob_type: *mut PyTypeObject
Trait Implementations§
source§impl Ord for _object
impl Ord for _object
source§impl PartialOrd for _object
impl PartialOrd for _object
impl Copy for _object
impl Eq for _object
impl StructuralPartialEq for _object
Auto Trait Implementations§
impl Freeze for _object
impl RefUnwindSafe for _object
impl !Send for _object
impl !Sync for _object
impl Unpin for _object
impl UnwindSafe for _object
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
)