Struct swift_runtime_sys::root::swift::atomic
source · #[repr(C)]pub struct atomic {
pub _address: u8,
}
Expand description
A simple wrapper for std::atomic that provides the most important interfaces and fixes the API bug where all of the orderings default to sequentially-consistent.
It also sometimes uses a different implementation in cases where std::atomic has made unfortunate choices; our uses of this broadly don’t have the ABI-compatibility issues that std::atomic faces.
Fields§
§_address: u8
Trait Implementations§
Auto Trait Implementations§
impl Freeze for atomic
impl RefUnwindSafe for atomic
impl Send for atomic
impl Sync for atomic
impl Unpin for atomic
impl UnwindSafe for atomic
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)