pub struct FileType(_);
Expand description
A structure representing a type of file with accessors for each file type.
See Metadata
.
Implementations§
source§impl FileType
impl FileType
sourcepub const fn is_symlink(&self) -> bool
pub const fn is_symlink(&self) -> bool
Returns true
if this represents a symbolic link.
sourcepub const fn is_block_device(&self) -> bool
pub const fn is_block_device(&self) -> bool
Returns true
if this represents a block device.
sourcepub const fn is_character_device(&self) -> bool
pub const fn is_character_device(&self) -> bool
Returns true
if this represents a character device.
sourcepub const fn is_named_pipe(&self) -> bool
pub const fn is_named_pipe(&self) -> bool
Returns true
if this represents a named fifo pipe.
Trait Implementations§
Auto Trait Implementations§
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