Trait intrusive_collections::rbtree::RBTreeOps
source · pub unsafe trait RBTreeOps: LinkOps {
// Required methods
unsafe fn left(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>;
unsafe fn right(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>;
unsafe fn parent(&self, ptr: Self::LinkPtr) -> Option<Self::LinkPtr>;
unsafe fn color(&self, ptr: Self::LinkPtr) -> Color;
unsafe fn set_left(
&mut self,
ptr: Self::LinkPtr,
left: Option<Self::LinkPtr>,
);
unsafe fn set_right(
&mut self,
ptr: Self::LinkPtr,
right: Option<Self::LinkPtr>,
);
unsafe fn set_parent(
&mut self,
ptr: Self::LinkPtr,
parent: Option<Self::LinkPtr>,
);
unsafe fn set_color(&mut self, ptr: Self::LinkPtr, color: Color);
}
Expand description
Link operations for RBTree
.