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

Link operations for SinglyLinkedList.

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 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.

Implementors§

source§

impl SinglyLinkedListOps for intrusive_collections::linked_list::AtomicLinkOps

source§

impl SinglyLinkedListOps for intrusive_collections::linked_list::LinkOps

source§

impl SinglyLinkedListOps for intrusive_collections::rbtree::AtomicLinkOps

source§

impl SinglyLinkedListOps for intrusive_collections::rbtree::LinkOps

source§

impl SinglyLinkedListOps for intrusive_collections::xor_linked_list::AtomicLinkOps

source§

impl SinglyLinkedListOps for intrusive_collections::xor_linked_list::LinkOps

source§

impl SinglyLinkedListOps for intrusive_collections::singly_linked_list::AtomicLinkOps

source§

impl SinglyLinkedListOps for intrusive_collections::singly_linked_list::LinkOps