Skip to main content

Bench

Struct Bench 

Source
pub struct Bench { /* private fields */ }

Implementations§

Source§

impl Bench

Source

pub fn when(&self) -> Option<&str>

This benchmark’s own when condition.

Source

pub fn group(&self) -> Option<&str>

The [group.NAME] this benchmark names, if any.

Source

pub fn is_multi(&self) -> bool

Whether this benchmark compares several programs rather than measuring one.

Trait Implementations§

Source§

impl Debug for Bench

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Bench

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Forget for Bench

§

impl Freeze for Bench
where *const u8 is !null: Freeze, PhantomData<String>: Freeze, PhantomData<u8>: Freeze, PhantomData<i64>: Freeze, *const LeafNode<String, String> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(String, String)>>: Freeze, *const LeafNode<String, MetricDecl> is !null: Freeze, PhantomData<Box<(String, MetricDecl)>>: Freeze, *const LeafNode<String, SubjectDecl> is !null: Freeze, PhantomData<Box<(String, SubjectDecl)>>: Freeze,

§

impl Move for Bench

§

impl RefUnwindSafe for Bench

§

impl Send for Bench
where RawVecInner: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send, NodeRef<Owned, String, MetricDecl, LeafOrInternal>: Send, BoxRaw<(String, MetricDecl)>: Send, NodeRef<Owned, String, SubjectDecl, LeafOrInternal>: Send, BoxRaw<(String, SubjectDecl)>: Send,

§

impl Sync for Bench
where RawVecInner: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, NodeRef<Owned, String, MetricDecl, LeafOrInternal>: Sync, BoxRaw<(String, MetricDecl)>: Sync, NodeRef<Owned, String, SubjectDecl, LeafOrInternal>: Sync, BoxRaw<(String, SubjectDecl)>: Sync,

§

impl Unpin for Bench
where *const u8 is !null: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin, *const LeafNode<String, MetricDecl> is !null: Unpin, Box<(String, MetricDecl)>: Unpin, *const LeafNode<String, SubjectDecl> is !null: Unpin, Box<(String, SubjectDecl)>: Unpin,

§

impl UnsafeUnpin for Bench

§

impl UnwindSafe for Bench

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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.