pub enum TreeOrientation {
TopDown,
}
Expand description
This denotes the orientation of the tree as it is written.
Variants§
TopDown
This writes a tree with the root node at the top-left corner and the tree expanding out to the right and down. This is often called a directory tree as it is useful in showing file-system hierarchy.
§Example
root
+-- Uncle
+-- Parent
| +-- Child 1
| | '-- Grand Child 1
| '-- Child 2
| '-- Grand Child 2
| '-- Great Grand Child 2
| '-- Great Great Grand Child 2
'-- Aunt
'-- Child 3
Trait Implementations§
Source§impl Clone for TreeOrientation
impl Clone for TreeOrientation
Source§fn clone(&self) -> TreeOrientation
fn clone(&self) -> TreeOrientation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TreeOrientation
impl Debug for TreeOrientation
Source§impl PartialEq for TreeOrientation
impl PartialEq for TreeOrientation
impl StructuralPartialEq for TreeOrientation
Auto Trait Implementations§
impl Freeze for TreeOrientation
impl RefUnwindSafe for TreeOrientation
impl Send for TreeOrientation
impl Sync for TreeOrientation
impl Unpin for TreeOrientation
impl UnwindSafe for TreeOrientation
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