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
.