pub struct BinaryTree { /* private fields */ }
Implementations§
Source§impl BinaryTree
impl BinaryTree
pub fn new(val: i64) -> Option<Rc<RefCell<BinaryTree>>>
pub fn insert_left(&mut self, left: Option<Rc<RefCell<BinaryTree>>>)
pub fn insert_right(&mut self, right: Option<Rc<RefCell<BinaryTree>>>)
pub fn traverse(&self)
pub fn print2DUtil(&self, space: i64)
Auto Trait Implementations§
impl Freeze for BinaryTree
impl !RefUnwindSafe for BinaryTree
impl !Send for BinaryTree
impl !Sync for BinaryTree
impl Unpin for BinaryTree
impl !UnwindSafe for BinaryTree
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