Struct intrusive_collections::linked_list::Link
source · #[repr(align(2))]pub struct Link { /* private fields */ }
Expand description
Intrusive link that allows an object to be inserted into a
LinkedList
.
Implementations§
source§impl Link
impl Link
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 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
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
)