pub enum FileType {
File,
Dir,
Symlink,
}Expand description
Type of a file on disk
There are currently there forms of files supported by this
library: File, Dir and
Symlink (please notice that
VirtualDiskit does not support
symlinks).
Variants§
Implementations§
Source§impl FileType
impl FileType
Sourcepub fn is_dir(&self) -> bool
pub fn is_dir(&self) -> bool
Returns whether the file is a directory
This function returns whether the file is a directory.
Sourcepub fn is_file(&self) -> bool
pub fn is_file(&self) -> bool
Returns whether the file is a normal file
This function returns whether the file is a normal file.
Sourcepub fn is_symlink(&self) -> bool
pub fn is_symlink(&self) -> bool
Returns whether the file is a symlink
This function returns whether the file is a symlink.
Trait Implementations§
Source§impl Ord for FileType
impl Ord for FileType
Source§impl PartialOrd for FileType
impl PartialOrd for FileType
impl Copy for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more