Struct broot::file_sum::FileSum[][src]

pub struct FileSum { /* fields omitted */ }
Expand description

Reduction of counts, dates and sizes on a file or directory

Implementations

return the sum of the given file, which is assumed to be a normal file (ie not a directory)

Return the sum of the directory, either by computing it of by fetching it from cache. If the lifetime expires before complete computation, None is returned.

return the number of files (normally at least 1)

return the number of seconds from Epoch to last modification, or 0 if the computation failed

return the size in bytes

tell whether the file has holes (in which case the size displayed by other tools may be greater than the “real” one returned by broot). Not computed (return false) on windows or for directories.

Trait Implementations

Performs the += operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.