Struct augmented_atomics::AtomicEnum
source · pub struct AtomicEnum<Inner: FromPrimitive + ToPrimitive> { /* private fields */ }
Expand description
Given an enum value deriving FromPrimitive
/ToPrimitive
, handles storing the value as an
atomic usize.
Implementations§
source§impl<Inner: FromPrimitive + ToPrimitive> AtomicEnum<Inner>
impl<Inner: FromPrimitive + ToPrimitive> AtomicEnum<Inner>
Trait Implementations§
source§impl<T: ToPrimitive + FromPrimitive> AtomicValue for AtomicEnum<T>
impl<T: ToPrimitive + FromPrimitive> AtomicValue for AtomicEnum<T>
source§impl<Inner: Debug + FromPrimitive + ToPrimitive> Debug for AtomicEnum<Inner>
impl<Inner: Debug + FromPrimitive + ToPrimitive> Debug for AtomicEnum<Inner>
source§impl<Inner: Default + FromPrimitive + ToPrimitive> Default for AtomicEnum<Inner>
impl<Inner: Default + FromPrimitive + ToPrimitive> Default for AtomicEnum<Inner>
source§fn default() -> AtomicEnum<Inner>
fn default() -> AtomicEnum<Inner>
Returns the “default value” for a type. Read more
source§impl<Inner: FromPrimitive + ToPrimitive> From<Inner> for AtomicEnum<Inner>
impl<Inner: FromPrimitive + ToPrimitive> From<Inner> for AtomicEnum<Inner>
Auto Trait Implementations§
impl<Inner> RefUnwindSafe for AtomicEnum<Inner>where Inner: RefUnwindSafe,
impl<Inner> Send for AtomicEnum<Inner>where Inner: Send,
impl<Inner> Sync for AtomicEnum<Inner>where Inner: Sync,
impl<Inner> Unpin for AtomicEnum<Inner>where Inner: Unpin,
impl<Inner> UnwindSafe for AtomicEnum<Inner>where Inner: UnwindSafe,
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