[][src]Enum fs_pro::DirEntry

pub enum DirEntry {
    File(File),
    Dir(Dir),
}

the result of Dir.read() this struct express a item in a folder

Variants

File(File)
Dir(Dir)

Implementations

impl DirEntry[src]

pub fn path(&self) -> PathBuf[src]

get the path of entry

pub fn file_name(&self) -> OsString[src]

get the raw name of entry

pub fn is_file(&self) -> bool[src]

return true if entry is a file

pub fn is_dir(&self) -> bool[src]

returns true if entry is a folder

Trait Implementations

impl Debug for DirEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,