Struct virtual_fs::FileType
source · pub struct FileType {
pub dir: bool,
pub file: bool,
pub symlink: bool,
pub char_device: bool,
pub block_device: bool,
pub socket: bool,
pub fifo: bool,
}
Fields§
§dir: bool
§file: bool
§symlink: bool
§char_device: bool
§block_device: bool
§socket: bool
§fifo: bool
Implementations§
source§impl FileType
impl FileType
pub fn new_dir() -> Self
pub fn new_file() -> Self
pub fn is_dir(&self) -> bool
pub fn is_file(&self) -> bool
pub fn is_symlink(&self) -> bool
pub fn is_char_device(&self) -> bool
pub fn is_block_device(&self) -> bool
pub fn is_socket(&self) -> bool
pub fn is_fifo(&self) -> bool
Trait Implementations§
source§impl PartialEq for FileType
impl PartialEq 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.