pub struct SizeFilter {
pub op: SizeOp,
pub bytes: i64,
}Expand description
A size filter with operator (e.g., >=1GB, <500KB).
Fields§
§op: SizeOp§bytes: i64Implementations§
Source§impl SizeFilter
impl SizeFilter
Sourcepub const fn new(op: SizeOp, bytes: i64) -> SizeFilter
pub const fn new(op: SizeOp, bytes: i64) -> SizeFilter
Create a new filter from an operator and byte threshold.
Sourcepub const fn gt(bytes: i64) -> SizeFilter
pub const fn gt(bytes: i64) -> SizeFilter
Filter: value > threshold.
Sourcepub const fn ge(bytes: i64) -> SizeFilter
pub const fn ge(bytes: i64) -> SizeFilter
Filter: value >= threshold.
Sourcepub const fn lt(bytes: i64) -> SizeFilter
pub const fn lt(bytes: i64) -> SizeFilter
Filter: value < threshold.
Sourcepub const fn le(bytes: i64) -> SizeFilter
pub const fn le(bytes: i64) -> SizeFilter
Filter: value <= threshold.
Sourcepub const fn eq(bytes: i64) -> SizeFilter
pub const fn eq(bytes: i64) -> SizeFilter
Filter: value == threshold.
Trait Implementations§
Source§impl Clone for SizeFilter
impl Clone for SizeFilter
Source§fn clone(&self) -> SizeFilter
fn clone(&self) -> SizeFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SizeFilter
Source§impl Debug for SizeFilter
impl Debug for SizeFilter
Source§impl Display for SizeFilter
impl Display for SizeFilter
impl Eq for SizeFilter
Source§impl FromStr for SizeFilter
impl FromStr for SizeFilter
Source§impl PartialEq for SizeFilter
impl PartialEq for SizeFilter
Source§fn eq(&self, other: &SizeFilter) -> bool
fn eq(&self, other: &SizeFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SizeFilter
Auto Trait Implementations§
impl Freeze for SizeFilter
impl RefUnwindSafe for SizeFilter
impl Send for SizeFilter
impl Sync for SizeFilter
impl Unpin for SizeFilter
impl UnsafeUnpin for SizeFilter
impl UnwindSafe for SizeFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.