Struct simics_api_sys::bindings::PyDictObject
source · #[repr(C)]pub struct PyDictObject {
pub ob_base: PyObject,
pub ma_used: Py_ssize_t,
pub ma_version_tag: u64,
pub ma_keys: *mut PyDictKeysObject,
pub ma_values: *mut *mut PyObject,
}
Expand description
The ma_values pointer is NULL for a combined table or points to an array of PyObject* for a split table
Fields§
§ob_base: PyObject
§ma_used: Py_ssize_t
Number of items in the dictionary
ma_version_tag: u64
Dictionary version: globally unique, value change each time the dictionary is modified
ma_keys: *mut PyDictKeysObject
§ma_values: *mut *mut PyObject
If ma_values is NULL, the table is “combined”: keys and values are stored in ma_keys.
If ma_values is not NULL, the table is split: keys are stored in ma_keys and values are stored in ma_values
Trait Implementations§
source§impl Clone for PyDictObject
impl Clone for PyDictObject
source§fn clone(&self) -> PyDictObject
fn clone(&self) -> PyDictObject
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 PyDictObject
impl Debug for PyDictObject
source§impl Default for PyDictObject
impl Default for PyDictObject
source§impl Hash for PyDictObject
impl Hash for PyDictObject
source§impl Ord for PyDictObject
impl Ord for PyDictObject
source§fn cmp(&self, other: &PyDictObject) -> Ordering
fn cmp(&self, other: &PyDictObject) -> 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 PyDictObject
impl PartialEq for PyDictObject
source§impl PartialOrd for PyDictObject
impl PartialOrd for PyDictObject
impl Copy for PyDictObject
impl Eq for PyDictObject
impl StructuralPartialEq for PyDictObject
Auto Trait Implementations§
impl Freeze for PyDictObject
impl RefUnwindSafe for PyDictObject
impl !Send for PyDictObject
impl !Sync for PyDictObject
impl Unpin for PyDictObject
impl UnwindSafe for PyDictObject
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
)