Struct Paths

struct Paths { ... }

An iterator that yields Paths from the filesystem that match a particular pattern.

Note that it yields GlobResult in order to report any IoErrors that may arise during iteration. If a directory matches but is unreadable, thereby preventing its contents from being checked for matches, a GlobError is returned to express this.

See the glob function for more details.

Implementations

impl Debug for Paths

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Freeze for Paths

impl Iterator for Paths

fn next(self: &mut Self) -> Option<GlobResult>

impl RefUnwindSafe for Paths

impl Send for Paths

impl Sync for Paths

impl Unpin for Paths

impl UnwindSafe for Paths

impl<I> IntoIterator for Paths

fn into_iter(self: Self) -> I

impl<T> Any for Paths

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Paths

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Paths

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Paths

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Paths

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Paths

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Paths

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>