pub struct BenchStated<'routine> { /* private fields */ }Expand description
A stated bench: its groups, in the order stated.
Implementations§
Source§impl<'routine> BenchStated<'routine>
impl<'routine> BenchStated<'routine>
Sourcepub fn group(self, group: BenchGroup<'routine>) -> Self
pub fn group(self, group: BenchGroup<'routine>) -> Self
States one group after the groups already stated.
Sourcepub fn then(self, next: Self) -> Self
pub fn then(self, next: Self) -> Self
States the groups of next after the groups of this bench.
Sourcepub fn groups(&self) -> impl Iterator<Item = &BenchGroup<'routine>>
pub fn groups(&self) -> impl Iterator<Item = &BenchGroup<'routine>>
Reads the groups the bench states, in the order stated.
Sourcepub fn into_groups(self) -> impl Iterator<Item = BenchGroup<'routine>>
pub fn into_groups(self) -> impl Iterator<Item = BenchGroup<'routine>>
Separates the groups from the bench that states them.
Trait Implementations§
Source§impl<'routine> Default for BenchStated<'routine>
impl<'routine> Default for BenchStated<'routine>
Source§fn default() -> BenchStated<'routine>
fn default() -> BenchStated<'routine>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'routine> !RefUnwindSafe for BenchStated<'routine>
impl<'routine> !Send for BenchStated<'routine>
impl<'routine> !Sync for BenchStated<'routine>
impl<'routine> !UnwindSafe for BenchStated<'routine>
impl<'routine> Freeze for BenchStated<'routine>
impl<'routine> Unpin for BenchStated<'routine>
impl<'routine> UnsafeUnpin for BenchStated<'routine>
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