Module leetcode_test_utils::tree::shortcuts [−][src]
Expand description
Wraps a value in TreeNode
all in one function, of any scale.
Functions
Create a RefCell<TreeNode>
with given value.
Create a complete node(Option<Rc<RefCell<TreeNode>>>
) with given value.
Create a Rc<RefCell<TreeNode>>
with given value.
Convert the rust style mutable pointer(specified in leetcode) into C/C++ style immutable pointer.
Convert the rust style mutable pointer(specified in leetcode) into C/C++ style mutable pointer.
Access the value pointed by the given pointer.