pub struct Metadata { /* private fields */ }
Expand description

A file metadata

Because we can’t freely create a std::fs::Metadata object we have to implement our own structure.

Implementations

Returns simplified type of the directory entry

Returns underlying stat structure

Returns true if the entry is a regular file

Returns true if the entry is a directory

Returns permissions of the entry

Returns file size

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.