pub trait PropertyAssertion<K = String>: Send + Sync {
// Required method
fn run(&self, actual: &Property<K>) -> Result<(), Error>;
}Expand description
Trait implemented by types that can act as properies for assertion.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<K> PropertyAssertion<K> for &Regex
impl<K> PropertyAssertion<K> for &Regex
Source§impl<K> PropertyAssertion<K> for &str
impl<K> PropertyAssertion<K> for &str
Source§impl<K> PropertyAssertion<K> for ExponentialHistogram<f64>
impl<K> PropertyAssertion<K> for ExponentialHistogram<f64>
Source§impl<K> PropertyAssertion<K> for ExponentialHistogram<i64>
impl<K> PropertyAssertion<K> for ExponentialHistogram<i64>
Source§impl<K> PropertyAssertion<K> for ExponentialHistogram<u64>
impl<K> PropertyAssertion<K> for ExponentialHistogram<u64>
Source§impl<K> PropertyAssertion<K> for LinearHistogram<f64>
impl<K> PropertyAssertion<K> for LinearHistogram<f64>
Source§impl<K> PropertyAssertion<K> for LinearHistogram<i64>
impl<K> PropertyAssertion<K> for LinearHistogram<i64>
Source§impl<K> PropertyAssertion<K> for LinearHistogram<u64>
impl<K> PropertyAssertion<K> for LinearHistogram<u64>
Source§impl<K> PropertyAssertion<K> for Regex
A PropertyAssertion that passes for any String containing
a matching for the given regular expression.
impl<K> PropertyAssertion<K> for Regex
A PropertyAssertion that passes for any String containing a matching for the given regular expression.
Source§impl<K> PropertyAssertion<K> for String
impl<K> PropertyAssertion<K> for String
Source§impl<K> PropertyAssertion<K> for Vec<&str>
impl<K> PropertyAssertion<K> for Vec<&str>
Source§impl<K> PropertyAssertion<K> for Vec<String>
impl<K> PropertyAssertion<K> for Vec<String>
Source§impl<K> PropertyAssertion<K> for Vec<f64>
Asserts plain numeric arrays
impl<K> PropertyAssertion<K> for Vec<f64>
Asserts plain numeric arrays
Source§impl<K> PropertyAssertion<K> for Vec<i64>
Asserts plain numeric arrays
impl<K> PropertyAssertion<K> for Vec<i64>
Asserts plain numeric arrays
Source§impl<K> PropertyAssertion<K> for Vec<u8>
impl<K> PropertyAssertion<K> for Vec<u8>
Source§impl<K> PropertyAssertion<K> for Vec<u64>
Asserts plain numeric arrays
impl<K> PropertyAssertion<K> for Vec<u64>
Asserts plain numeric arrays
Source§impl<K> PropertyAssertion<K> for bool
impl<K> PropertyAssertion<K> for bool
Source§impl<K> PropertyAssertion<K> for f32
impl<K> PropertyAssertion<K> for f32
Source§impl<K> PropertyAssertion<K> for f64
impl<K> PropertyAssertion<K> for f64
Source§impl<K> PropertyAssertion<K> for i8
impl<K> PropertyAssertion<K> for i8
Source§impl<K> PropertyAssertion<K> for i16
impl<K> PropertyAssertion<K> for i16
Source§impl<K> PropertyAssertion<K> for i32
impl<K> PropertyAssertion<K> for i32
Source§impl<K> PropertyAssertion<K> for i64
impl<K> PropertyAssertion<K> for i64
Source§impl<K> PropertyAssertion<K> for u8
impl<K> PropertyAssertion<K> for u8
Source§impl<K> PropertyAssertion<K> for u16
impl<K> PropertyAssertion<K> for u16
Source§impl<K> PropertyAssertion<K> for u32
impl<K> PropertyAssertion<K> for u32
Source§impl<K> PropertyAssertion<K> for u64
impl<K> PropertyAssertion<K> for u64
Implementors§
impl<K> PropertyAssertion<K> for AnyBoolProperty
impl<K> PropertyAssertion<K> for AnyBytesProperty
impl<K> PropertyAssertion<K> for AnyDoubleProperty
impl<K> PropertyAssertion<K> for AnyIntProperty
impl<K> PropertyAssertion<K> for AnyNumericProperty
impl<K> PropertyAssertion<K> for AnyProperty
impl<K> PropertyAssertion<K> for AnyStringProperty
impl<K> PropertyAssertion<K> for AnyUintProperty
impl<K> PropertyAssertion<K> for HistogramAssertion<f64>
Asserts a histogram.
impl<K> PropertyAssertion<K> for HistogramAssertion<i64>
Asserts a histogram.
impl<K> PropertyAssertion<K> for HistogramAssertion<u64>
Asserts a histogram.