Struct intrusive_collections::xor_linked_list::LinkOps
source · pub struct LinkOps;
Expand description
Default LinkOps
implementation for XorLinkedList
.
Trait Implementations§
source§impl LinkOps for LinkOps
impl LinkOps for LinkOps
source§unsafe fn acquire_link(&mut self, ptr: Self::LinkPtr) -> bool
unsafe fn acquire_link(&mut self, ptr: Self::LinkPtr) -> bool
Attempts to acquire ownership of a link so that it can be used in an
intrusive collection. Read more
source§unsafe fn release_link(&mut self, ptr: Self::LinkPtr)
unsafe fn release_link(&mut self, ptr: Self::LinkPtr)
Releases ownership of a link that was previously acquired with
acquire_link
. Read moresource§impl SinglyLinkedListOps for LinkOps
impl SinglyLinkedListOps for LinkOps
source§impl XorLinkedListOps for LinkOps
impl XorLinkedListOps for LinkOps
source§unsafe fn next(
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
) -> Option<Self::LinkPtr>
unsafe fn next( &self, ptr: Self::LinkPtr, prev: Option<Self::LinkPtr>, ) -> Option<Self::LinkPtr>
Returns the “next” link pointer of
ptr
. Read moresource§unsafe fn prev(
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>,
) -> Option<Self::LinkPtr>
unsafe fn prev( &self, ptr: Self::LinkPtr, next: Option<Self::LinkPtr>, ) -> Option<Self::LinkPtr>
Returns the “prev” link pointer of
ptr
. Read moreimpl Copy for LinkOps
Auto Trait Implementations§
impl Freeze for LinkOps
impl RefUnwindSafe for LinkOps
impl Send for LinkOps
impl Sync for LinkOps
impl Unpin for LinkOps
impl UnwindSafe for LinkOps
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
)