pub struct FileType(/* private fields */);
Expand description
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
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