[][src]Struct diskspace_insight::Directory

pub struct Directory {
    pub size: u64,
    pub combined_size: u64,
    pub path: PathBuf,
    pub files: Vec<File>,
    pub directories: Vec<PathBuf>,
    pub parent: Option<PathBuf>,
}

A Directory, representing a directory on disk

Fields

size: u64combined_size: u64path: PathBuffiles: Vec<File>directories: Vec<PathBuf>parent: Option<PathBuf>

Implementations

impl Directory[src]

pub fn new(path: PathBuf) -> Directory

Notable traits for Directory

impl Iterator for Directory type Item = PathBuf;
[src]

pub fn files_as_fake_dir(&self) -> Directory

Notable traits for Directory

impl Iterator for Directory type Item = PathBuf;
[src]

pub fn sorted_subdirs(&self, info: &DirInfo) -> Vec<Directory>[src]

Trait Implementations

impl Clone for Directory[src]

impl Debug for Directory[src]

impl Default for Directory[src]

impl Display for Directory[src]

impl Iterator for Directory[src]

type Item = PathBuf

The type of the elements being iterated over.

Auto Trait Implementations

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.