Skip to main content

BenchGroup

Struct BenchGroup 

Source
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>

Source

pub const fn new(group: &'static str, cases: BenchCases<'routine>) -> Self

States cases as one group, named group.

Source

pub const fn group(&self) -> &'static str

Returns what the group is named.

Source

pub fn cases(self) -> BenchCases<'routine>

Returns the cases the group states, and how they are measured.

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.