Struct diskspace_insight::DirInfo
source · pub struct DirInfo {
pub filetypes: HashMap<String, FileType>,
pub files: Vec<File>,
pub files_by_size: Vec<File>,
pub types_by_size: Vec<FileType>,
pub dirs_by_size: Vec<Directory>,
pub tree: HashMap<PathBuf, Directory>,
pub combined_size: u64,
pub duplicates: HashMap<u64, Vec<File>>,
}
Expand description
A DirInfo holds all info about a directory.
Fields
filetypes: HashMap<String, FileType>
All file types
files: Vec<File>
files_by_size: Vec<File>
Files, ordered by size, descending
types_by_size: Vec<FileType>
Filetypes, ordered by size, descending
dirs_by_size: Vec<Directory>
Directories, ordered by size
tree: HashMap<PathBuf, Directory>
combined_size: u64
Cumulated size
duplicates: HashMap<u64, Vec<File>>
All duplicates
Implementations
sourceimpl DirInfo
impl DirInfo
sourcepub fn types_by_size(&self) -> Vec<FileType>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn types_by_size(&self) -> Vec<FileType>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Return file types, ordered by size
sourcepub fn files_by_size(&self) -> Vec<File>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn files_by_size(&self) -> Vec<File>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Return all files, ordered by size
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DirInfo
impl Send for DirInfo
impl Sync for DirInfo
impl Unpin for DirInfo
impl UnwindSafe for DirInfo
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