pub struct FileType(/* private fields */);
Expand description
A structure representing a type of file with accessors for each file type.
Implementations§
Trait Implementations§
source§impl FileTypeExt for FileType
Available on Unix only.
impl FileTypeExt for FileType
Available on Unix only.
source§fn is_block_device(&self) -> bool
fn is_block_device(&self) -> bool
Returns
true
if this file type is a block device. Read moresource§fn is_char_device(&self) -> bool
fn is_char_device(&self) -> bool
Returns
true
if this file type is a char device. Read moreimpl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)