[−][src]Struct wasmer_runtime_core::memory::Atomic
Methods
impl<T: IntCast> Atomic<T>
[src]
pub fn get_mut(&mut self) -> &mut T::Public
[src]
pub fn into_inner(self) -> T::Public
[src]
pub fn load(&self, order: Ordering) -> T::Public
[src]
pub fn store(&self, val: T::Public, order: Ordering)
[src]
pub fn swap(&self, val: T::Public, order: Ordering) -> T::Public
[src]
pub fn compare_and_swap(
&self,
current: T::Public,
new: T::Public,
order: Ordering
) -> T::Public
[src]
&self,
current: T::Public,
new: T::Public,
order: Ordering
) -> T::Public
pub fn compare_exchange(
&self,
current: T::Public,
new: T::Public,
success: Ordering,
failure: Ordering
) -> Result<T::Public, T::Public>
[src]
&self,
current: T::Public,
new: T::Public,
success: Ordering,
failure: Ordering
) -> Result<T::Public, T::Public>
pub fn compare_exchange_weak(
&self,
current: T::Public,
new: T::Public,
success: Ordering,
failure: Ordering
) -> Result<T::Public, T::Public>
[src]
&self,
current: T::Public,
new: T::Public,
success: Ordering,
failure: Ordering
) -> Result<T::Public, T::Public>
pub fn fetch_add(&self, val: T::Public, order: Ordering) -> T::Public
[src]
pub fn fetch_sub(&self, val: T::Public, order: Ordering) -> T::Public
[src]
pub fn fetch_and(&self, val: T::Public, order: Ordering) -> T::Public
[src]
pub fn fetch_or(&self, val: T::Public, order: Ordering) -> T::Public
[src]
pub fn fetch_xor(&self, val: T::Public, order: Ordering) -> T::Public
[src]
Trait Implementations
impl<T> Sync for Atomic<T>
[src]
impl<T: Default + IntCast> Default for Atomic<T>
[src]
impl<T> RefUnwindSafe for Atomic<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.