#[repr(C)]pub struct ddsrt_avl_node {
pub cs: [*mut ddsrt_avl_node; 2],
pub parent: *mut ddsrt_avl_node,
pub height: c_int,
}Expand description
@brief The avl node is the basic element of the avl tree structure.
To store user data in the tree, the avl node must be embedded in a user node, which is a struct containing the user data. All API calls with a node as input or output, deal with the user node. Example: @code{.c} typedef struct num_s{ // user node ddsrt_avl_node_t node; uint64_t val; // user data }num_t; @endcode
Fields§
§cs: [*mut ddsrt_avl_node; 2]< contains pointers to the left and right child node
parent: *mut ddsrt_avl_node< points to the parent node
height: c_int< is the height of the subtree starting at this node
Trait Implementations§
Source§impl Clone for ddsrt_avl_node
impl Clone for ddsrt_avl_node
Source§fn clone(&self) -> ddsrt_avl_node
fn clone(&self) -> ddsrt_avl_node
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ddsrt_avl_node
Source§impl Debug for ddsrt_avl_node
impl Debug for ddsrt_avl_node
Auto Trait Implementations§
impl !Send for ddsrt_avl_node
impl !Sync for ddsrt_avl_node
impl Freeze for ddsrt_avl_node
impl RefUnwindSafe for ddsrt_avl_node
impl Unpin for ddsrt_avl_node
impl UnsafeUnpin for ddsrt_avl_node
impl UnwindSafe for ddsrt_avl_node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more