Struct cap_std::fs::FileType [−][src]
#[repr(transparent)]pub struct FileType(_);
A structure representing a type of file with accessors for each file type.
This corresponds to std::fs::FileType
.
Implementations
impl FileType
[src]
impl FileType
[src]pub fn is_dir(&self) -> bool
[src]
pub fn is_dir(&self) -> bool
[src]Tests whether this file type represents a directory.
This corresponds to std::fs::FileType::is_dir
.
pub fn is_file(&self) -> bool
[src]
pub fn is_file(&self) -> bool
[src]Tests whether this file type represents a regular file.
This corresponds to std::fs::FileType::is_file
.
pub fn is_symlink(&self) -> bool
[src]
pub fn is_symlink(&self) -> bool
[src]Tests whether this file type represents a symbolic link.
This corresponds to std::fs::FileType::is_symlink
.
Trait Implementations
impl FileTypeExt for FileType
[src]
impl FileTypeExt for FileType
[src]pub fn is_block_device(&self) -> bool
[src]
pub fn is_block_device(&self) -> bool
[src]Returns true
if this file type is a block device. Read more
pub fn is_char_device(&self) -> bool
[src]
pub fn is_char_device(&self) -> bool
[src]Returns true
if this file type is a char device. Read more
impl Copy for FileType
[src]
impl Eq for FileType
[src]
impl StructuralEq for FileType
[src]
impl StructuralPartialEq for FileType
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more