MCPcopy Create free account
hub / github.com/douchuan/algorithm / Node

Class Node

src/tree/binary/node.rs:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21pub struct Node<K, V> {
22 pub key: K,
23 pub val: Option<V>,
24 pub left: Option<NonNull<Node<K, V>>>,
25 pub right: Option<NonNull<Node<K, V>>>,
26 pub parent: Option<NonNull<Node<K, V>>>,
27 pub color: Color, // used by red black tree
28 pub delta: i32, // 平衡因子, used by avl tree
29}
30
31impl<K, V> Node<K, V> {
32 pub fn new(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected