pub enum BenchmarkFilter {
AcceptAll,
Regex(Regex),
Exact(String),
RejectAll,
}
Expand description
Benchmark filtering support.
Variants§
AcceptAll
Run all benchmarks.
Regex(Regex)
Run benchmarks matching this regex.
Exact(String)
Run the benchmark matching this string exactly.
RejectAll
Do not run any benchmarks.
Trait Implementations§
Source§impl Clone for BenchmarkFilter
impl Clone for BenchmarkFilter
Source§fn clone(&self) -> BenchmarkFilter
fn clone(&self) -> BenchmarkFilter
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BenchmarkFilter
impl RefUnwindSafe for BenchmarkFilter
impl Send for BenchmarkFilter
impl Sync for BenchmarkFilter
impl Unpin for BenchmarkFilter
impl UnwindSafe for BenchmarkFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes
Size for each variant:
AcceptAll
: 0 bytesRegex
: 32 bytesExact
: 24 bytesRejectAll
: 0 bytes