pub struct GlobEntry { /* private fields */ }
Available on crate feature
walk
only.Expand description
Describes a file with a path matching a Glob
in a directory tree.
See Glob::walk
.
Implementations§
source§impl GlobEntry
impl GlobEntry
sourcepub fn to_candidate_path(&self) -> CandidatePath<'_>
pub fn to_candidate_path(&self) -> CandidatePath<'_>
Converts the entry to the relative CandidatePath
.
This differs from Entry::path
and Entry::into_path
, which are native paths and
typically include the root path. The CandidatePath
is always relative to the root
path.
sourcepub fn matched(&self) -> &MatchedText<'static>
pub fn matched(&self) -> &MatchedText<'static>
Gets the matched text in the path of the file.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GlobEntry
impl Send for GlobEntry
impl Sync for GlobEntry
impl Unpin for GlobEntry
impl UnwindSafe for GlobEntry
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