Struct Paths
pub struct Paths { /* private fields */ }
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.
Trait Implementations
impl Debug for Paths
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Iterator for Paths
type Item = Result<PathBuf, GlobError>;fn next(&mut self) -> Option<GlobResult>
Auto Trait Implementations
impl !RefUnwindSafe for Paths
impl !UnwindSafe for Paths
impl Freeze for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnsafeUnpin for Paths
Blanket Implementations
impl<I> IntoIterator for Paths
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for Paths
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Paths
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Paths
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Paths
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Paths
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Paths
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Paths
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>