pub struct WalkEntry<'e> { /* private fields */ }
Available on crate feature
walk
only.Expand description
Describes a file matching a Glob
in a directory tree.
Implementations§
source§impl<'e> WalkEntry<'e>
impl<'e> WalkEntry<'e>
sourcepub fn into_owned(self) -> WalkEntry<'static>
pub fn into_owned(self) -> WalkEntry<'static>
Clones any borrowed data into an owning instance.
pub fn into_path(self) -> PathBuf
sourcepub fn to_candidate_path(&self) -> CandidatePath<'_>
pub fn to_candidate_path(&self) -> CandidatePath<'_>
Converts the entry to the relative CandidatePath
.
This differs from path
and into_path
, which are natively encoded and may be
absolute. The CandidatePath
is always relative to the root of the
directory tree.
pub fn file_type(&self) -> FileType
pub fn metadata(&self) -> Result<Metadata, WalkError>
sourcepub fn matched(&self) -> &MatchedText<'e>
pub fn matched(&self) -> &MatchedText<'e>
Gets the matched text in the path of the file.
Trait Implementations§
Auto Trait Implementations§
impl<'e> RefUnwindSafe for WalkEntry<'e>
impl<'e> Send for WalkEntry<'e>
impl<'e> Sync for WalkEntry<'e>
impl<'e> Unpin for WalkEntry<'e>
impl<'e> UnwindSafe for WalkEntry<'e>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more