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

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>
    ); }
Expand description

Link operations for LinkedList.

Required methods

Returns the “next” link pointer of ptr.

Safety

An implementation of next must not panic.

Returns the “prev” link pointer of ptr.

Safety

An implementation of prev must not panic.

Sets the “next” link pointer of ptr.

Safety

An implementation of set_next must not panic.

Sets the “prev” link pointer of ptr.

Safety

An implementation of set_prev must not panic.

Implementors