pub struct Assistant { /* private fields */ }
Available on crate feature
runner
only.Implementations§
source§impl Assistant
impl Assistant
sourcepub fn new_main_assistant(
kind: AssistantKind,
envs: Vec<(OsString, OsString)>,
run_parallel: bool,
) -> Self
pub fn new_main_assistant( kind: AssistantKind, envs: Vec<(OsString, OsString)>, run_parallel: bool, ) -> Self
The setup or teardown of the main
macro
sourcepub fn new_group_assistant(
kind: AssistantKind,
group_name: &str,
envs: Vec<(OsString, OsString)>,
run_parallel: bool,
) -> Self
pub fn new_group_assistant( kind: AssistantKind, group_name: &str, envs: Vec<(OsString, OsString)>, run_parallel: bool, ) -> Self
The setup or teardown of a binary_benchmark_group
or library_benchmark_group
sourcepub fn new_bench_assistant(
kind: AssistantKind,
group_name: &str,
indices: (usize, usize),
pipe: Option<Pipe>,
envs: Vec<(OsString, OsString)>,
run_parallel: bool,
) -> Self
pub fn new_bench_assistant( kind: AssistantKind, group_name: &str, indices: (usize, usize), pipe: Option<Pipe>, envs: Vec<(OsString, OsString)>, run_parallel: bool, ) -> Self
The setup or teardown function of a Bench
This is currently only used by binary benchmarks. Library benchmarks use a completely
different logic for setup and teardown functions specified in a #[bench]
, #[benches]
and
#[library_benchmark]
and don’t need to be executed via the compiled benchmark.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Assistant
impl RefUnwindSafe for Assistant
impl Send for Assistant
impl Sync for Assistant
impl Unpin for Assistant
impl UnwindSafe for Assistant
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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 more