pub struct Node<T> {
pub value: T,
pub left: Option<Rc<RefCell<Node<T>>>>,
pub right: Option<Rc<RefCell<Node<T>>>>,
}
Fields§
§value: T
§left: Option<Rc<RefCell<Node<T>>>>
§right: Option<Rc<RefCell<Node<T>>>>
Trait Implementations§
impl<T: Eq> Eq for Node<T>
impl<T> StructuralPartialEq for Node<T>
Auto Trait Implementations§
impl<T> Freeze for Node<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Node<T>
impl<T> !Send for Node<T>
impl<T> !Sync for Node<T>
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> !UnwindSafe for Node<T>
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