pub struct StatingBench;Expand description
States a bench as the value it is, which is what an interpretation folds.
Trait Implementations§
Source§impl BenchAlg for StatingBench
impl BenchAlg for StatingBench
Source§type Bench = BenchStated<'static>
type Bench = BenchStated<'static>
Carries a stated bench.
Source§impl Clone for StatingBench
impl Clone for StatingBench
Source§fn clone(&self) -> StatingBench
fn clone(&self) -> StatingBench
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatingBench
Source§impl Debug for StatingBench
impl Debug for StatingBench
Source§impl Default for StatingBench
impl Default for StatingBench
Source§fn default() -> StatingBench
fn default() -> StatingBench
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatingBench
impl RefUnwindSafe for StatingBench
impl Send for StatingBench
impl Sync for StatingBench
impl Unpin for StatingBench
impl UnsafeUnpin for StatingBench
impl UnwindSafe for StatingBench
Blanket Implementations§
Source§impl<This> BenchExt<This> for Thiswhere
This: BenchAlg,
impl<This> BenchExt<This> for Thiswhere
This: BenchAlg,
Source§fn one_at_a_time<Stated, Routine>(
&self,
group: &'static str,
cases: Stated,
) -> <This as BenchAlg>::Benchwhere
Stated: IntoIterator<Item = (&'static str, Routine)>,
Routine: FnMut(BenchRounds) -> Duration + 'static,
fn one_at_a_time<Stated, Routine>(
&self,
group: &'static str,
cases: Stated,
) -> <This as BenchAlg>::Benchwhere
Stated: IntoIterator<Item = (&'static str, Routine)>,
Routine: FnMut(BenchRounds) -> Duration + 'static,
States one group whose cases are measured one at a time.
A routine stating Send is taken as well, since a case that may be measured beside others
may also be measured alone.
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