pub(crate) struct TimeFilter {
pub(crate) active: bool,
pub(crate) op: CmpOp,
pub(crate) days: i64,
}Expand description
Parsed modification-time filter with comparison operator and day count.
Created by parse_time_filter() from CLI strings like +7, -1, or 3.
The active field indicates whether this filter was specified on the command line.
§Semantics
+N— file is older than N days (age > N)-N— file is newer than N days (age < N)N— file is exactly N days old (age == N)
Age is computed as (now - mtime) / 86400 (integer division, in hours/24).
Fields§
§active: boolWhether this filter is enabled (a --mtime value was provided).
op: CmpOpComparison direction: exact, less-than, or greater-than.
days: i64Age threshold in days.
Trait Implementations§
Source§impl Clone for TimeFilter
impl Clone for TimeFilter
Source§fn clone(&self) -> TimeFilter
fn clone(&self) -> TimeFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TimeFilter
impl RefUnwindSafe for TimeFilter
impl Send for TimeFilter
impl Sync for TimeFilter
impl Unpin for TimeFilter
impl UnwindSafe for TimeFilter
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