[][src]Trait intrusive_collections::linked_list::LinkedListOps

pub unsafe trait LinkedListOps: LinkOps {
    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>
    ); }

Link operations for LinkedList.

Required methods

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.

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.

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.

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.

Loading content...

Implementors

impl LinkedListOps for intrusive_collections::linked_list::LinkOps[src]

impl LinkedListOps for intrusive_collections::rbtree::LinkOps[src]

Loading content...