Struct intrusive_collections::rbtree::AtomicLink
source · #[repr(align(2))]pub struct AtomicLink { /* private fields */ }
Expand description
Intrusive link that allows an object to be inserted into a
RBTree
. 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 RBTree
.
§Safety
It is undefined behavior to call this function while still linked into a
RBTree
. The only situation where this function is useful is
after calling fast_clear
on a RBTree
, 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 · source§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§
impl !Freeze for AtomicLink
impl !RefUnwindSafe for AtomicLink
impl Unpin for AtomicLink
impl !UnwindSafe for AtomicLink
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)