Struct cap_primitives::fs::FileType [−][src]
#[repr(transparent)]pub struct FileType(_);
Expand description
A structure representing a type of file with accessors for each file type.
This corresponds to std::fs::FileType
.
We need to define our own version because the libstd `FileType` doesn't have
a public constructor that we can use.
Implementations
Tests whether this file type represents a directory.
This corresponds to std::fs::FileType::is_dir
.
Tests whether this file type represents a regular file.
This corresponds to std::fs::FileType::is_file
.
Tests whether this file type represents a symbolic link.
This corresponds to std::fs::FileType::is_symlink
.
Trait Implementations
🔬 This is a nightly-only experimental API. (
windows_file_type_ext
)Returns true
if this file type is a symbolic link that is also a directory.
🔬 This is a nightly-only experimental API. (
windows_file_type_ext
)Returns true
if this file type is a symbolic link that is also a file.
Auto Trait Implementations
impl RefUnwindSafe for FileType
impl UnwindSafe for FileType
Blanket Implementations
Mutably borrows from an owned value. Read more