#[repr(align(2))]pub struct Link { /* private fields */ }
Expand description
Intrusive link that allows an object to be inserted into a
XorLinkedList
.
Implementations§
Source§impl Link
impl Link
Sourcepub unsafe fn force_unlink(&self)
pub unsafe fn force_unlink(&self)
Forcibly unlinks an object from a XorLinkedList
.
§Safety
It is undefined behavior to call this function while still linked into a
XorLinkedList
. The only situation where this function is useful is
after calling fast_clear
on a XorLinkedList
, since this clears
the collection without marking the nodes as unlinked.
Trait Implementations§
Source§impl DefaultLinkOps for Link
impl DefaultLinkOps for Link
impl Send for Link
Auto Trait Implementations§
impl !Freeze for Link
impl !RefUnwindSafe for Link
impl !Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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