pub struct TreeRoot {
pub root: Option<Rc<RefCell<TreeNode>>>,
}
Expand description
Wrapper class to make handling empty trees easier and building of trees easier via From impls
Fields§
§root: Option<Rc<RefCell<TreeNode>>>
The root of the tree held
Trait Implementations§
impl Eq for TreeRoot
impl StructuralPartialEq for TreeRoot
Auto Trait Implementations§
impl Freeze for TreeRoot
impl !RefUnwindSafe for TreeRoot
impl !Send for TreeRoot
impl !Sync for TreeRoot
impl Unpin for TreeRoot
impl !UnwindSafe for TreeRoot
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