pub(crate) enum CmpOp {
Eq,
Lt,
Gt,
}Expand description
Comparison operator for size and time filters.
Used by SizeFilter and TimeFilter to determine
the comparison direction when testing metadata values.
Eq— exact match (no prefix in the CLI string)Lt— less than (CLI prefix-)Gt— greater than (CLI prefix+)
Variants§
Eq
Exact equality (e.g., 4096 means exactly 4096 bytes, 3 means exactly 3 days old).
Lt
Less than (e.g., -1K means smaller than 1 KB, -1 means newer than 1 day).
Gt
Greater than (e.g., +10M means larger than 10 MB, +7 means older than 7 days).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmpOp
impl RefUnwindSafe for CmpOp
impl Send for CmpOp
impl Sync for CmpOp
impl Unpin for CmpOp
impl UnwindSafe for CmpOp
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