pub trait PropertyAssertion<K = String> {
// 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§
Implementations on Foreign Types§
Source§impl<K> PropertyAssertion<K> for &str
impl<K> PropertyAssertion<K> for &str
Source§impl<K> PropertyAssertion<K> for &Regex
impl<K> PropertyAssertion<K> for &Regex
Source§impl<K> PropertyAssertion<K> for bool
impl<K> PropertyAssertion<K> for bool
Source§impl<K> PropertyAssertion<K> for f64
impl<K> PropertyAssertion<K> for f64
Source§impl<K> PropertyAssertion<K> for i64
impl<K> PropertyAssertion<K> for i64
Source§impl<K> PropertyAssertion<K> for u64
impl<K> PropertyAssertion<K> for u64
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 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<f64>
impl<K> PropertyAssertion<K> for Vec<f64>
Asserts plain numeric arrays
Source§impl<K> PropertyAssertion<K> for Vec<i64>
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>
impl<K> PropertyAssertion<K> for Vec<u64>
Asserts plain numeric arrays
Source§impl<K> PropertyAssertion<K> for Vec<String>
impl<K> PropertyAssertion<K> for Vec<String>
Source§impl<K> PropertyAssertion<K> for Regex
impl<K> PropertyAssertion<K> for Regex
A PropertyAssertion that passes for any String containing a matching for the given regular expression.
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.