[][src]Struct diskspace_insight::DirInfo

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,
}

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>tree: HashMap<PathBuf, Directory>combined_size: u64

Implementations

impl DirInfo[src]

pub fn new() -> DirInfo[src]

Contsruct a new DirInfo

pub fn types_by_size(&self) -> Vec<FileType>[src]

Return file types, ordered by size

pub fn files_by_size(&self) -> Vec<File>[src]

Return all files, ordered by size

pub fn dirs_by_size(&self) -> Vec<Directory>[src]

Return all directories, ordered by size

Trait Implementations

impl Clone for DirInfo[src]

impl Debug for DirInfo[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.