pub struct IndexbusAtomicU32(/* private fields */);Expand description
ABI atomics are represented as integer-backed newtypes in layout structs.
Why this exists:
- The ABI needs C-friendly integer storage.
- Rust needs an interior-mutability marker so atomic ops don’t violate aliasing rules.
Contract:
- Atomic operations are performed at the address of the inner integer.
- Size/alignment must match
AtomicU32/AtomicU64on the platform.
When the containing layout is accessed concurrently, callers should treat these fields as atomic storage and avoid non-atomic reads/writes to the inner integer.
Integer-backed ABI atomic u32.
Implementations§
Trait Implementations§
impl Send for IndexbusAtomicU32
impl Sync for IndexbusAtomicU32
Auto Trait Implementations§
impl !Freeze for IndexbusAtomicU32
impl !RefUnwindSafe for IndexbusAtomicU32
impl Unpin for IndexbusAtomicU32
impl UnwindSafe for IndexbusAtomicU32
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