pub struct FormatOptions {
pub max_depth: Option<usize>,
pub top_n: Option<usize>,
pub colors: bool,
pub show_counts: bool,
}Expand description
Format options for tree output
Fields§
§max_depth: Option<usize>Maximum depth to display
top_n: Option<usize>Show only top N entries per directory
colors: boolUse colors in output
show_counts: boolShow file counts
Implementations§
Source§impl FormatOptions
impl FormatOptions
pub fn new() -> Self
pub fn with_max_depth(self, depth: usize) -> Self
pub fn with_top_n(self, n: usize) -> Self
pub fn with_colors(self, enabled: bool) -> Self
pub fn with_counts(self, show: bool) -> Self
pub fn unlimited() -> Self
Trait Implementations§
Source§impl Clone for FormatOptions
impl Clone for FormatOptions
Source§impl Debug for FormatOptions
impl Debug for FormatOptions
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnsafeUnpin for FormatOptions
impl UnwindSafe for FormatOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more