pub trait BenchmarkSetup<AccountId> {
// Required method
fn ensure_member(acc: &AccountId);
}
Expand description
Helper functions to setup benchmarking.
Required Methods§
Sourcefn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<AccountId> BenchmarkSetup<AccountId> for ()
impl<AccountId> BenchmarkSetup<AccountId> for ()
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Source§impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0,)
impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0,)
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Source§impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1)
impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1)
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Source§impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2)
impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2)
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Source§impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)
impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Source§impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)
impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Source§impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)
impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Source§impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>, TupleElement6: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)
impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>, TupleElement6: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.
Source§impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>, TupleElement6: BenchmarkSetup<AccountId>, TupleElement7: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)
impl<AccountId, TupleElement0: BenchmarkSetup<AccountId>, TupleElement1: BenchmarkSetup<AccountId>, TupleElement2: BenchmarkSetup<AccountId>, TupleElement3: BenchmarkSetup<AccountId>, TupleElement4: BenchmarkSetup<AccountId>, TupleElement5: BenchmarkSetup<AccountId>, TupleElement6: BenchmarkSetup<AccountId>, TupleElement7: BenchmarkSetup<AccountId>> BenchmarkSetup<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)
Source§fn ensure_member(acc: &AccountId)
fn ensure_member(acc: &AccountId)
Ensure that this member is registered correctly.