Struct intrusive_collections::linked_list::AtomicLink
source · #[repr(align(2))]pub struct AtomicLink { /* private fields */ }
Expand description
Intrusive atomic link that allows an object to be inserted into a
LinkedList
. This link allows the structure to be shared between threads.
Implementations§
source§impl AtomicLink
impl AtomicLink
sourcepub const fn new() -> AtomicLink
pub const fn new() -> AtomicLink
Creates a new AtomicLink
.
sourcepub unsafe fn force_unlink(&self)
pub unsafe fn force_unlink(&self)
Forcibly unlinks an object from a LinkedList
.
Safety
It is undefined behavior to call this function while still linked into a
LinkedList
. The only situation where this function is useful is
after calling fast_clear
on a LinkedList
, since this clears
the collection without marking the nodes as unlinked.
Trait Implementations§
source§impl Clone for AtomicLink
impl Clone for AtomicLink
source§fn clone(&self) -> AtomicLink
fn clone(&self) -> AtomicLink
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AtomicLink
impl Debug for AtomicLink
source§impl Default for AtomicLink
impl Default for AtomicLink
source§fn default() -> AtomicLink
fn default() -> AtomicLink
Returns the “default value” for a type. Read more
source§impl DefaultLinkOps for AtomicLink
impl DefaultLinkOps for AtomicLink
impl Send for AtomicLink
impl Sync for AtomicLink
Auto Trait Implementations§
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more