MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / Node

Class Node

10_smart_pointers/rust/bintree.rs:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6#[derive(Debug)]
7struct Node<T> {
8 parent: Option<Weak<RefCell<Node<T>>>>,
9 left: Option<Rc<RefCell<Node<T>>>>,
10 right: Option<Rc<RefCell<Node<T>>>>,
11 value: T,
12}
13
14impl<T: Debug> Node<T> {
15 fn new(value: T) -> Node<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected