Trait VMetadata

Source
pub trait VMetadata {
    // Required methods
    fn is_dir(&self) -> bool;
    fn is_file(&self) -> bool;
    fn len(&self) -> u64;
}
Expand description

The metadata we can read from a file.

Required Methods§

Source

fn is_dir(&self) -> bool

Returns whether or not it is a directory. Note that zip files don’t actually have directories, awkwardly, just files with very long names.

Source

fn is_file(&self) -> bool

Returns whether or not it is a file.

Source

fn len(&self) -> u64

Returns the length of the thing. If it is a directory, the result of this is undefined/platform dependent.

Implementors§