Trait intrusive_collections::rbtree::RBTreeOps[][src]

pub unsafe trait RBTreeOps: LinkOps {
    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.

Required methods

Returns the left child of ptr.

Safety

An implementation of left must not panic.

Returns the right child of ptr.

Safety

An implementation of right must not panic.

Returns the parent of ptr.

Safety

An implementation of parent must not panic.

Returns the color of ptr.

Safety

An implementation of color must not panic.

Sets the left child of ptr.

Safety

An implementation of set_left must not panic.

Sets the right child of ptr.

Safety

An implementation of set_right must not panic.

Sets the parent of ptr.

Safety

An implementation of set_parent must not panic.

Sets the color of ptr.

Safety

An implementation of set_color must not panic.

Implementors