[][src]Struct flize::Atomic

#[repr(transparent)]pub struct Atomic<V, T> where
    T: Tag
{ /* fields omitted */ }

Implementations

impl<V, T> Atomic<V, T> where
    T: Tag
[src]

pub unsafe fn from_raw(raw: usize) -> Self[src]

Safety

Marked unsafe because this is not usually what the user wants. Atomic::null should be preferred when possible.

pub fn null() -> Self[src]

pub fn null_vec(len: usize) -> Vec<Self>[src]

pub fn load<'shield>(
    &self,
    ordering: Ordering,
    _shield: &'shield Shield<'_>
) -> Shared<'shield, V, T>
[src]

pub fn store<'shield>(
    &self,
    data: Shared<'_, V, T>,
    ordering: Ordering,
    _shield: &'shield Shield<'_>
)
[src]

pub fn swap<'shield>(
    &self,
    new: Shared<'_, V, T>,
    ordering: Ordering,
    _shield: &'shield Shield<'_>
) -> Shared<'shield, V, T>
[src]

pub fn compare_and_swap<'shield>(
    &self,
    current: Shared<'_, V, T>,
    new: Shared<'_, V, T>,
    order: Ordering,
    _shield: &'shield Shield<'_>
) -> Shared<'shield, V, T>
[src]

pub fn compare_exchange_weak<'shield>(
    &self,
    current: Shared<'_, V, T>,
    new: Shared<'_, V, T>,
    success: Ordering,
    failure: Ordering,
    _shield: &'shield Shield<'_>
) -> Result<Shared<'shield, V, T>, Shared<'shield, V, T>>
[src]

Auto Trait Implementations

impl<V, T> RefUnwindSafe for Atomic<V, T> where
    T: RefUnwindSafe,
    V: RefUnwindSafe

impl<V, T> Send for Atomic<V, T> where
    T: Send,
    V: Send

impl<V, T> Sync for Atomic<V, T> where
    T: Sync,
    V: Sync

impl<V, T> Unpin for Atomic<V, T> where
    T: Unpin,
    V: Unpin

impl<V, T> UnwindSafe for Atomic<V, T> where
    T: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.