1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
use crate::object::*;
use crate::pyport::Py_ssize_t;
opaque_struct!(pub PyDictKeysObject);
opaque_struct!(pub PyDictValues);
#[repr(C)]
#[derive(Debug)]
pub struct PyDictObject {
pub ob_base: PyObject,
pub ma_used: Py_ssize_t,
#[cfg_attr(
Py_3_12,
deprecated(note = "Deprecated in Python 3.12 and will be removed in the future.")
)]
#[cfg(not(Py_3_14))]
pub ma_version_tag: u64,
#[cfg(Py_3_14)]
_ma_watcher_tag: u64,
pub ma_keys: *mut PyDictKeysObject,
pub ma_values: *mut PyDictValues,
}
// skipped private _PyDict_GetItem_KnownHash
// skipped private _PyDict_GetItemStringWithError
// skipped PyDict_SetDefault
// skipped PyDict_SetDefaultRef
// skipped PyDict_GET_SIZE
// skipped PyDict_ContainsString
// skipped private _PyDict_NewPresized
// skipped PyDict_Pop
// skipped PyDict_PopString
// skipped private _PyDict_Pop
// skipped PY_FOREACH_DICT_EVENT
// skipped PyDict_WatchEvent
// skipped PyDict_WatchCallback
// skipped PyDict_AddWatcher
// skipped PyDict_ClearWatcher
// skipped PyDict_Watch
// skipped PyDict_Unwatch