pub struct BenchGroup<'routine> { /* private fields */ }Expand description
One group of a stated bench: what the cases are compared within, and the cases.
Implementations§
Source§impl<'routine> BenchGroup<'routine>
impl<'routine> BenchGroup<'routine>
Sourcepub const fn new(group: &'static str, cases: BenchCases<'routine>) -> Self
pub const fn new(group: &'static str, cases: BenchCases<'routine>) -> Self
States cases as one group, named group.
Sourcepub fn cases(self) -> BenchCases<'routine>
pub fn cases(self) -> BenchCases<'routine>
Returns the cases the group states, and how they are measured.
Sourcepub const fn stated(&self) -> &BenchCases<'routine>
pub const fn stated(&self) -> &BenchCases<'routine>
Reads the cases the group states without taking them.
Auto Trait Implementations§
impl<'routine> !RefUnwindSafe for BenchGroup<'routine>
impl<'routine> !Send for BenchGroup<'routine>
impl<'routine> !Sync for BenchGroup<'routine>
impl<'routine> !UnwindSafe for BenchGroup<'routine>
impl<'routine> Freeze for BenchGroup<'routine>
impl<'routine> Unpin for BenchGroup<'routine>
impl<'routine> UnsafeUnpin for BenchGroup<'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