[−][src]Struct sprint_dir::DirEntry
Describes a file that was found.
All parents of this entry have already been yielded before.
Implementations
impl DirEntry
[src]
pub fn path(&self) -> &Path
[src]
Inspect the path of this entry.
pub fn path_is_symlink(&self) -> bool
[src]
pub fn metadata(&self) -> Result<Metadata>
[src]
Read the full meta data.
pub fn into_path(self) -> PathBuf
[src]
Convert the entry into a path
Potentially more efficient than as_path().to_owned()
.
pub fn file_type(&self) -> FileType
[src]
pub fn file_name(&self) -> &OsStr
[src]
Return the filename of this entry.
pub fn depth(&self) -> usize
[src]
The depth at which this entry is in the directory tree.
When iterating items in depth-first order and following symbolic links then this is not necessarily the smallest depth at which it might appear.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,