#[repr(C)]pub struct swift_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§
Source§impl Clone for swift_atomic
impl Clone for swift_atomic
Source§fn clone(&self) -> swift_atomic
fn clone(&self) -> swift_atomic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for swift_atomic
impl Debug for swift_atomic
impl Copy for swift_atomic
Auto Trait Implementations§
impl Freeze for swift_atomic
impl RefUnwindSafe for swift_atomic
impl Send for swift_atomic
impl Sync for swift_atomic
impl Unpin for swift_atomic
impl UnwindSafe for swift_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