pub struct TreeConfig {
pub symbols: TreeSymbols,
pub indent: usize,
pub show_first_level: bool,
}
Fields§
§symbols: TreeSymbols
§indent: usize
Aside from the first branch, indent
is equal to the number of spaces a child branch is
shifted from its parent.
show_first_level: bool
Implementations§
Source§impl TreeConfig
impl TreeConfig
pub fn new() -> Self
pub fn with_symbols(symbols: TreeSymbols) -> Self
pub fn indent(self, x: usize) -> Self
pub fn show_first_level(self) -> Self
pub fn hide_first_level(self) -> Self
pub fn symbols(self, x: TreeSymbols) -> Self
Trait Implementations§
Source§impl Clone for TreeConfig
impl Clone for TreeConfig
Source§fn clone(&self) -> TreeConfig
fn clone(&self) -> TreeConfig
Returns a duplicate 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 TreeConfig
impl Debug for TreeConfig
Auto Trait Implementations§
impl Freeze for TreeConfig
impl RefUnwindSafe for TreeConfig
impl Send for TreeConfig
impl Sync for TreeConfig
impl Unpin for TreeConfig
impl UnwindSafe for TreeConfig
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