pub struct IterManualOptions { /* private fields */ }Expand description
Options for Bencher::iter_manual_unstable.
Implementations§
Source§impl IterManualOptions
impl IterManualOptions
Sourcepub fn new() -> IterManualOptions
pub fn new() -> IterManualOptions
Start with defaults: 1 round, 1 iteration per round, 0 warmup rounds.
Sourcepub fn rounds(self, rounds: u64) -> IterManualOptions
pub fn rounds(self, rounds: u64) -> IterManualOptions
Number of measurement rounds (each produces one sample).
Sourcepub fn iters(self, iters: u64) -> IterManualOptions
pub fn iters(self, iters: u64) -> IterManualOptions
Number of routine invocations inside a measurement round.
Sourcepub fn warmup(self, warmup_rounds: u64) -> IterManualOptions
pub fn warmup(self, warmup_rounds: u64) -> IterManualOptions
Number of unmeasured warmup rounds run before measurement starts.
Trait Implementations§
Source§impl Clone for IterManualOptions
impl Clone for IterManualOptions
Source§fn clone(&self) -> IterManualOptions
fn clone(&self) -> IterManualOptions
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 moreSource§impl Debug for IterManualOptions
impl Debug for IterManualOptions
Source§impl Default for IterManualOptions
impl Default for IterManualOptions
Source§fn default() -> IterManualOptions
fn default() -> IterManualOptions
Returns the “default value” for a type. Read more
impl Copy for IterManualOptions
Auto Trait Implementations§
impl Freeze for IterManualOptions
impl RefUnwindSafe for IterManualOptions
impl Send for IterManualOptions
impl Sync for IterManualOptions
impl Unpin for IterManualOptions
impl UnsafeUnpin for IterManualOptions
impl UnwindSafe for IterManualOptions
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§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