pub struct FileTree {
pub file_size: FileSize,
/* private fields */
}
Fields
file_size: FileSize
Implementations
sourceimpl FileTree
impl FileTree
pub fn sort(
self,
maybe_num: Option<usize>,
min_bytes: Option<u64>,
dirs_only: bool,
max_depth: Option<u8>
) -> FileTree
pub fn filtered(
self,
min_bytes: Option<u64>,
dirs_only: bool,
max_depth: Option<u8>
) -> FileTree
pub fn new() -> FileTree
pub fn add(&mut self, size: FileSize)
pub fn push(
&mut self,
path: String,
size: FileSize,
subtree: Option<&mut FileTree>,
depth: u8,
is_dir: bool
)
pub fn display_tree(&mut self, init_dir: &PathBuf)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FileTree
impl Send for FileTree
impl Sync for FileTree
impl Unpin for FileTree
impl UnwindSafe for FileTree
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more