pub struct FileTree {
pub file_size: FileSize,
/* private fields */
}Fields§
§file_size: FileSizeImplementations§
Source§impl 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 Freeze for FileTree
impl RefUnwindSafe for FileTree
impl Send for FileTree
impl Sync for FileTree
impl Unpin for FileTree
impl UnwindSafe for FileTree
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