#[repr(C)]pub struct ddsrt_avl_treedef {
pub avlnodeoffset: usize,
pub keyoffset: usize,
pub u: ddsrt_avl_treedef__bindgen_ty_1,
pub augment: ddsrt_avl_augment_t,
pub flags: u32,
pub cmp_arg: *mut c_void,
}Expand description
@brief The tree definition.
The treedef stores settings for the tree, but does not hold the actual tree itself. This implies that:
- A single treedef can be used for multiple trees of the same type.
- Most tree operations require you to provide both the treedef and the @ref ddsrt_avl_tree.
To initialize it, use @ref ddsrt_avl_treedef_init, @ref ddsrt_avl_treedef_init_r, or one of the ‘DDSRT_AVL_TREEDEF_INITIALIZER’ macros.
Fields§
§avlnodeoffset: usize§keyoffset: usize§u: ddsrt_avl_treedef__bindgen_ty_1§augment: ddsrt_avl_augment_t§flags: u32§cmp_arg: *mut c_voidTrait Implementations§
Source§impl Clone for ddsrt_avl_treedef
impl Clone for ddsrt_avl_treedef
Source§fn clone(&self) -> ddsrt_avl_treedef
fn clone(&self) -> ddsrt_avl_treedef
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_treedef
Source§impl Debug for ddsrt_avl_treedef
impl Debug for ddsrt_avl_treedef
Auto Trait Implementations§
impl !Send for ddsrt_avl_treedef
impl !Sync for ddsrt_avl_treedef
impl Freeze for ddsrt_avl_treedef
impl RefUnwindSafe for ddsrt_avl_treedef
impl Unpin for ddsrt_avl_treedef
impl UnsafeUnpin for ddsrt_avl_treedef
impl UnwindSafe for ddsrt_avl_treedef
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