| 1 | #[cfg(not(any(Py_LIMITED_API, PyPy)))] |
| 2 | use craterust-analyzer cargo pyo3-ffi 0.28.2 crate/::pyportrust-analyzer cargo pyo3-ffi 0.28.2 pyport/::{Py_hash_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_hash_t#, Py_ssize_trust-analyzer cargo pyo3-ffi 0.28.2 pyport/Py_ssize_t#}; |
| 3 | #[cfg(not(any(Py_LIMITED_API, PyPy)))] |
| 4 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ffirust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/::c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#; |
| 5 | |
| 6 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ffirust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/::{c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int#, c_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong#}; |
| 7 | |
| 8 | extern "C" { |
| 9 | // skipped non-limited _Py_HashDouble |
| 10 | // skipped non-limited _Py_HashPointer |
| 11 | // skipped non-limited _Py_HashPointerRaw |
| 12 | |
| 13 | #[cfg(not(any(Py_LIMITED_API, PyPy)))] |
| 14 | pub fn _Py_HashBytes(src: *const c_void, len: Py_ssize_t) -> Py_hash_t; |
| 15 | } |
| 16 | |
| 17 | pub const _PyHASH_MULTIPLIERrust-analyzer cargo pyo3-ffi 0.28.2 pyhash/_PyHASH_MULTIPLIER.: c_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong# = 1000003; |
| 18 | |
| 19 | // skipped _PyHASH_BITS |
| 20 | |
| 21 | // skipped non-limited _Py_HashSecret_t |
| 22 | |
| 23 | // skipped Py_HASH_CUTOFF |
| 24 | |
| 25 | pub const Py_HASH_EXTERNALrust-analyzer cargo pyo3-ffi 0.28.2 pyhash/Py_HASH_EXTERNAL.: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# = 0; |
| 26 | pub const Py_HASH_SIPHASH24rust-analyzer cargo pyo3-ffi 0.28.2 pyhash/Py_HASH_SIPHASH24.: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# = 1; |
| 27 | pub const Py_HASH_FNVrust-analyzer cargo pyo3-ffi 0.28.2 pyhash/Py_HASH_FNV.: c_intrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_int# = 2; |
| 28 | |
| 29 | // skipped Py_HASH_ALGORITHM |