Struct ReadDir
struct ReadDir(_)
Iterator over the entries in a directory.
This iterator is returned from the read_dir function of this module and
will yield instances of [io::Result]<[DirEntry]>. Through a DirEntry
information like the entry's path and possibly other metadata can be
learned.
The order in which this iterator returns entries is platform and filesystem dependent.
Errors
This io::Result will be an Err if an error occurred while fetching
the next entry from the OS.
Implementations
impl Debug for ReadDir
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Freeze for ReadDir
impl Iterator for ReadDir
fn next(self: &mut Self) -> Option<io::Result<DirEntry>>
impl RefUnwindSafe for ReadDir
impl Send for ReadDir
impl Sync for ReadDir
impl Unpin for ReadDir
impl UnwindSafe for ReadDir
impl<I> IntoIterator for ReadDir
fn into_iter(self: Self) -> I
impl<T> Any for ReadDir
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ReadDir
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ReadDir
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for ReadDir
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for ReadDir
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ReadDir
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ReadDir
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>