Struct rsfs::mem::unix::FileType [] [src]

pub struct FileType(_);

Returned from Metadata::file_type, this structure represents the type of a file.

This structure implements rsfs::FileType

Examples

let fs = FS::new();
let f = fs.create_file("f")?;
assert!(fs.metadata("f")?.file_type().is_file());

Trait Implementations

impl Copy for FileType
[src]

impl Clone for FileType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FileType
[src]

Formats the value using the given formatter.

impl PartialEq for FileType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for FileType
[src]

impl Hash for FileType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl FileType for FileType
[src]

Returns whether this file type is a directory. Read more

Returns whether this file type is a file. Read more

Returns whether this file type is a symlink. Read more