pub struct Atomic { /* private fields */ }Expand description
A fixed-length bitmap whose bits can be set concurrently through shared references.
Atomic::set uses relaxed ordering, which is published by ownership transfer rather than
by the operations themselves: the bits can only be read back by consuming the map
(Atomic::into_bitmap), so whatever reclaims exclusive ownership from the setters
(joining their tasks, Arc::into_inner) is what makes their writes visible.
Implementations§
Auto Trait Implementations§
impl Freeze for Atomic
impl RefUnwindSafe for Atomic
impl Send for Atomic
impl Sync for Atomic
impl Unpin for Atomic
impl UnsafeUnpin for Atomic
impl UnwindSafe for 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