pub struct SimpleBench {
pub name: &'static str,
pub module: &'static str,
pub func: fn(),
}Expand description
A registered benchmark function.
This struct is used by the inventory crate for compile-time benchmark registration.
The #[bench] macro from simplebench-macros generates these registrations automatically.
Fields§
§name: &'static strName of the benchmark function
module: &'static strModule path where the benchmark is defined
func: fn()The benchmark function to execute
Trait Implementations§
impl Collect for SimpleBench
Auto Trait Implementations§
impl Freeze for SimpleBench
impl RefUnwindSafe for SimpleBench
impl Send for SimpleBench
impl Sync for SimpleBench
impl Unpin for SimpleBench
impl UnwindSafe for SimpleBench
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