[][src]Struct dirstat_rs::DiskItem

pub struct DiskItem {
    pub name: String,
    pub disk_size: u64,
    pub children: Option<Vec<DiskItem>>,
}

Fields

name: Stringdisk_size: u64children: Option<Vec<DiskItem>>

Methods

impl DiskItem[src]

pub fn from_analyze(
    path: &Path,
    apparent: bool,
    root_dev: u64
) -> Result<Self, Box<dyn Error>>
[src]

Trait Implementations

impl Serialize for DiskItem[src]

Auto Trait Implementations

impl Send for DiskItem

impl Sync for DiskItem

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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