pub struct HistogramAssertion<T> { /* private fields */ }
Expand description
An assertion for a histogram property.
Implementations§
Source§impl<T: MulAssign + AddAssign + PartialOrd + Add<Output = T> + Copy + Default + One> HistogramAssertion<T>
impl<T: MulAssign + AddAssign + PartialOrd + Add<Output = T> + Copy + Default + One> HistogramAssertion<T>
Sourcepub fn linear(params: LinearHistogramParams<T>) -> Self
pub fn linear(params: LinearHistogramParams<T>) -> Self
Creates a new histogram assertion for a linear histogram with the given parameters.
Sourcepub fn exponential(params: ExponentialHistogramParams<T>) -> Self
pub fn exponential(params: ExponentialHistogramParams<T>) -> Self
Creates a new histogram assertion for an exponential histogram with the given parameters.
Sourcepub fn insert_values(&mut self, values: impl IntoIterator<Item = T>)
pub fn insert_values(&mut self, values: impl IntoIterator<Item = T>)
Inserts the list of values to the histogram for asserting them.
Trait Implementations§
Source§impl<T: Clone> Clone for HistogramAssertion<T>
impl<T: Clone> Clone for HistogramAssertion<T>
Source§fn clone(&self) -> HistogramAssertion<T>
fn clone(&self) -> HistogramAssertion<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<K> PropertyAssertion<K> for HistogramAssertion<f64>
impl<K> PropertyAssertion<K> for HistogramAssertion<f64>
Asserts a histogram.
Source§impl<K> PropertyAssertion<K> for HistogramAssertion<i64>
impl<K> PropertyAssertion<K> for HistogramAssertion<i64>
Asserts a histogram.
Auto Trait Implementations§
impl<T> Freeze for HistogramAssertion<T>
impl<T> RefUnwindSafe for HistogramAssertion<T>where
T: RefUnwindSafe,
impl<T> Send for HistogramAssertion<T>where
T: Send,
impl<T> Sync for HistogramAssertion<T>where
T: Sync,
impl<T> Unpin for HistogramAssertion<T>where
T: Unpin,
impl<T> UnwindSafe for HistogramAssertion<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)