#[non_exhaustive]pub enum BenchMode {
Test,
Bench,
List,
PrintResults,
}Expand description
Mode in which the bencher is currently executing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Test
Testing the benchmark code. Enabled by running benchmarks via cargo test.
Bench
Collecting benchmark data (i.e., the main / default mode).
List
Listing benchmark names. Enabled by specifying --list command-line arg.
PrintResults
Printing benchmark results collected during previous runs. Enabled by specifying --print command-line arg.
Trait Implementations§
impl Copy for BenchMode
impl Eq for BenchMode
impl StructuralPartialEq for BenchMode
Auto Trait Implementations§
impl Freeze for BenchMode
impl RefUnwindSafe for BenchMode
impl Send for BenchMode
impl Sync for BenchMode
impl Unpin for BenchMode
impl UnwindSafe for BenchMode
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