Enum zbox::FileType [−][src]
pub enum FileType { File, Dir, }
A structure representing a type of file with accessors for each file type.
Variants
File
Dir
Methods
impl FileType
[src]
impl FileType
pub fn is_file(&self) -> bool
[src]
pub fn is_file(&self) -> bool
Test whether this file type represents a regular file.
pub fn is_dir(&self) -> bool
[src]
pub fn is_dir(&self) -> bool
Test whether this file type represents a directory.
Trait Implementations
impl Debug for FileType
[src]
impl Debug for FileType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for FileType
[src]
impl Copy for FileType
impl Clone for FileType
[src]
impl Clone for FileType
fn clone(&self) -> FileType
[src]
fn clone(&self) -> FileType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for FileType
[src]
impl PartialEq for FileType
fn eq(&self, other: &FileType) -> bool
[src]
fn eq(&self, other: &FileType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Default for FileType
[src]
impl Default for FileType
impl Into<i32> for FileType
[src]
impl Into<i32> for FileType