pub enum BinaryPredicate {
Show 17 variants
FilesReferToSameDeviceAndInodeNumbers,
LeftFileIsNewerOrExistsWhenRightDoesNot,
LeftFileIsOlderOrDoesNotExistWhenRightDoes,
StringExactlyMatchesPattern,
StringDoesNotExactlyMatchPattern,
StringMatchesRegex,
StringExactlyMatchesString,
StringDoesNotExactlyMatchString,
StringContainsSubstring,
LeftSortsBeforeRight,
LeftSortsAfterRight,
ArithmeticEqualTo,
ArithmeticNotEqualTo,
ArithmeticLessThan,
ArithmeticLessThanOrEqualTo,
ArithmeticGreaterThan,
ArithmeticGreaterThanOrEqualTo,
}Expand description
A binary predicate usable in an extended test expression.
Variants§
FilesReferToSameDeviceAndInodeNumbers
Computes if two files refer to the same device and inode numbers.
LeftFileIsNewerOrExistsWhenRightDoesNot
Computes if the left file is newer than the right, or exists when the right does not.
LeftFileIsOlderOrDoesNotExistWhenRightDoes
Computes if the left file is older than the right, or does not exist when the right does.
StringExactlyMatchesPattern
Computes if a string exactly matches a pattern.
StringDoesNotExactlyMatchPattern
Computes if a string does not exactly match a pattern.
StringMatchesRegex
Computes if a string matches a regular expression.
StringExactlyMatchesString
Computes if a string exactly matches another string.
StringDoesNotExactlyMatchString
Computes if a string does not exactly match another string.
StringContainsSubstring
Computes if a string contains a substring.
LeftSortsBeforeRight
Computes if the left value sorts before the right.
LeftSortsAfterRight
Computes if the left value sorts after the right.
ArithmeticEqualTo
Computes if two values are equal via arithmetic comparison.
ArithmeticNotEqualTo
Computes if two values are not equal via arithmetic comparison.
ArithmeticLessThan
Computes if the left value is less than the right via arithmetic comparison.
ArithmeticLessThanOrEqualTo
Computes if the left value is less than or equal to the right via arithmetic comparison.
ArithmeticGreaterThan
Computes if the left value is greater than the right via arithmetic comparison.
ArithmeticGreaterThanOrEqualTo
Computes if the left value is greater than or equal to the right via arithmetic comparison.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for BinaryPredicate
Available on crate feature arbitrary only.
impl<'arbitrary> Arbitrary<'arbitrary> for BinaryPredicate
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for BinaryPredicate
impl Clone for BinaryPredicate
Source§impl Debug for BinaryPredicate
impl Debug for BinaryPredicate
Source§impl<'de> Deserialize<'de> for BinaryPredicate
Available on crate features serde only.
impl<'de> Deserialize<'de> for BinaryPredicate
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for BinaryPredicate
impl Display for BinaryPredicate
impl Eq for BinaryPredicate
serde only.Source§impl PartialEq for BinaryPredicate
Available on crate features serde only.
impl PartialEq for BinaryPredicate
serde only.Source§impl Serialize for BinaryPredicate
Available on crate features serde only.
impl Serialize for BinaryPredicate
serde only.impl StructuralPartialEq for BinaryPredicate
serde only.Auto Trait Implementations§
impl Freeze for BinaryPredicate
impl RefUnwindSafe for BinaryPredicate
impl Send for BinaryPredicate
impl Sync for BinaryPredicate
impl Unpin for BinaryPredicate
impl UnsafeUnpin for BinaryPredicate
impl UnwindSafe for BinaryPredicate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.