Debian Codegraph @

src/impl_/mod.rs

raw symbols SCIP
1 #[cfg(Py_GIL_DISABLED)]
2 mod atomic_c_ulong {
3 pub struct GetAtomicCULong<const WIDTH: usize>();
4
5 pub trait AtomicCULongType {
6 type Type;
7 }
8 impl AtomicCULongType for GetAtomicCULong<32> {
9 type Type = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::syncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std sync/::atomicrust-analyzer cargo core https://github.com/rust-lang/rust/library/core sync/atomic/::AtomicU32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core sync/atomic/AtomicU32#;
10 }
11 impl AtomicCULongType for GetAtomicCULong<64> {
12 type Type = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::syncrust-analyzer cargo std https://github.com/rust-lang/rust/library/std sync/::atomicrust-analyzer cargo core https://github.com/rust-lang/rust/library/core sync/atomic/::AtomicU64rust-analyzer cargo core https://github.com/rust-lang/rust/library/core sync/atomic/AtomicU64#;
13 }
14
15 pub type TYPE =
16 <GetAtomicCULong<{ stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<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_ulongrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_ulong#>() * 8 }> as AtomicCULongType>::Type;
17 }
18
19 /// Typedef for an atomic integer to match the platform-dependent c_ulong type.
20 #[cfg(Py_GIL_DISABLED)]
21 #[doc(hidden)]
22 pub type AtomicCULong = atomic_c_ulong::TYPE;