pub struct Tree(pub BTreeMap<String, Box<Tree>>);Tuple Fields§
§0: BTreeMap<String, Box<Tree>>Trait Implementations§
Source§impl Drop for Tree
Drops the tree without recursion.
impl Drop for Tree
Drops the tree without recursion.
The derived drop of Box<Tree> recurses once per level, so a deep tree would overflow the stack when it goes
out of scope, even if it was built and printed iteratively. The maps are taken out one by one instead; every
child is dropped with an empty map.
impl StructuralPartialEq for Tree
Auto Trait Implementations§
impl Freeze for Tree
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnsafeUnpin for Tree
impl UnwindSafe for Tree
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