pub unsafe trait LinkedListOps: LinkOps {
    // Required methods
    unsafe fn next(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>;
    unsafe fn prev(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>;
    unsafe fn set_next(
        &mut self,
        ptr: Self::LinkPtr,
        next: Option<Self::LinkPtr>
    );
    unsafe fn set_prev(
        &mut self,
        ptr: Self::LinkPtr,
        prev: Option<Self::LinkPtr>
    );
}
Expand description

Link operations for LinkedList.

Required Methods§

source

unsafe fn next(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>

Returns the “next” link pointer of ptr.

Safety

An implementation of next must not panic.

source

unsafe fn prev(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>

Returns the “prev” link pointer of ptr.

Safety

An implementation of prev must not panic.

source

unsafe fn set_next(&mut self, ptr: Self::LinkPtr, next: Option<Self::LinkPtr>)

Sets the “next” link pointer of ptr.

Safety

An implementation of set_next must not panic.

source

unsafe fn set_prev(&mut self, ptr: Self::LinkPtr, prev: Option<Self::LinkPtr>)

Sets the “prev” link pointer of ptr.

Safety

An implementation of set_prev must not panic.

Implementors§

source§

impl LinkedListOps for intrusive_collections::rbtree::AtomicLinkOps

source§

impl LinkedListOps for intrusive_collections::rbtree::LinkOps

source§

impl LinkedListOps for intrusive_collections::linked_list::AtomicLinkOps

source§

impl LinkedListOps for intrusive_collections::linked_list::LinkOps