pub struct NewerTimeMatcher { /* private fields */ }Expand description
This matcher checks whether files’s accessed|creation|modification time is newer than the given times.
Implementations§
Source§impl NewerTimeMatcher
impl NewerTimeMatcher
pub fn new(newer_time_type: NewerOptionType, time: i64) -> Self
Trait Implementations§
Source§impl Matcher for NewerTimeMatcher
impl Matcher for NewerTimeMatcher
Source§fn matches(&self, file_info: &WalkEntry, _: &mut MatcherIO<'_>) -> bool
fn matches(&self, file_info: &WalkEntry, _: &mut MatcherIO<'_>) -> bool
Returns whether the given file matches the object’s predicate.
Source§fn has_side_effects(&self) -> bool
fn has_side_effects(&self) -> bool
Returns whether the matcher has any side-effects (e.g. executing a
command, deleting a file). Iff no such matcher exists in the chain, then
the filename will be printed to stdout. While this is a compile-time
fact for most matchers, it’s run-time for matchers that contain a
collection of sub-Matchers.
Source§fn finished_dir(
&self,
_finished_directory: &Path,
_matcher_io: &mut MatcherIO<'_>,
)
fn finished_dir( &self, _finished_directory: &Path, _matcher_io: &mut MatcherIO<'_>, )
Notification that find is leaving a given directory.
Auto Trait Implementations§
impl Freeze for NewerTimeMatcher
impl RefUnwindSafe for NewerTimeMatcher
impl Send for NewerTimeMatcher
impl Sync for NewerTimeMatcher
impl Unpin for NewerTimeMatcher
impl UnwindSafe for NewerTimeMatcher
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