Struct intrusive_collections::rbtree::LinkOps
source · pub struct LinkOps;
Expand description
Default LinkOps
implementation for RBTree
.
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 LinkedListOps for LinkOps
impl LinkedListOps for LinkOps
source§unsafe fn next(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
unsafe fn next(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
Returns the “next” link pointer of
ptr
. Read moresource§unsafe fn prev(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
unsafe fn prev(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
Returns the “prev” link pointer of
ptr
. Read moresource§impl RBTreeOps for LinkOps
impl RBTreeOps for LinkOps
source§unsafe fn left(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
unsafe fn left(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
Returns the left child of
ptr
. Read moresource§unsafe fn right(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
unsafe fn right(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
Returns the right child of
ptr
. Read moresource§unsafe fn parent(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
unsafe fn parent(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>
Returns the parent of
ptr
. Read moresource§unsafe fn set_left(&mut self, ptr: Self::LinkPtr, left: Option<Self::LinkPtr>)
unsafe fn set_left(&mut self, ptr: Self::LinkPtr, left: Option<Self::LinkPtr>)
Sets the left child of
ptr
. Read moresource§unsafe fn set_right(&mut self, ptr: Self::LinkPtr, right: Option<Self::LinkPtr>)
unsafe fn set_right(&mut self, ptr: Self::LinkPtr, right: Option<Self::LinkPtr>)
Sets the right child of
ptr
. 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
)