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>
Asserts a histogram.
impl<K> PropertyAssertion<K> for HistogramAssertion<f64>
Asserts a histogram.
Source§impl<K> PropertyAssertion<K> for HistogramAssertion<i64>
Asserts a histogram.
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more