[−][src]Struct flize::Atomic
Implementations
impl<V, T> Atomic<V, T> where
T: Tag,
[src]
T: Tag,
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]
&self,
ordering: Ordering,
_shield: &'shield Shield<'_>
) -> Shared<'shield, V, T>
pub fn store<'shield>(
&self,
data: Shared<'_, V, T>,
ordering: Ordering,
_shield: &'shield Shield<'_>
)
[src]
&self,
data: Shared<'_, V, T>,
ordering: Ordering,
_shield: &'shield Shield<'_>
)
pub fn swap<'shield>(
&self,
new: Shared<'_, V, T>,
ordering: Ordering,
_shield: &'shield Shield<'_>
) -> Shared<'shield, V, T>
[src]
&self,
new: Shared<'_, V, T>,
ordering: Ordering,
_shield: &'shield Shield<'_>
) -> Shared<'shield, V, T>
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]
&self,
current: Shared<'_, V, T>,
new: Shared<'_, V, T>,
order: Ordering,
_shield: &'shield Shield<'_>
) -> Shared<'shield, V, T>
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]
&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>>
Auto Trait Implementations
impl<V, T> RefUnwindSafe for Atomic<V, T> where
T: RefUnwindSafe,
V: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, T> Send for Atomic<V, T> where
T: Send,
V: Send,
T: Send,
V: Send,
impl<V, T> Sync for Atomic<V, T> where
T: Sync,
V: Sync,
T: Sync,
V: Sync,
impl<V, T> Unpin for Atomic<V, T> where
T: Unpin,
V: Unpin,
T: Unpin,
V: Unpin,
impl<V, T> UnwindSafe for Atomic<V, T> where
T: UnwindSafe,
V: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,