pub struct BenchmarkDeclaration { /* private fields */ }Expand description
The complete neutral benchmark declaration one delivery is projected from.
Implementations§
Source§impl BenchmarkDeclaration
impl BenchmarkDeclaration
Sourcepub fn declared(
support: SupportName,
table_function: FunctionName,
table: Name,
rows: Vec<Row>,
reporter: Reporter,
) -> Result<Self, DeclarationError>
pub fn declared( support: SupportName, table_function: FunctionName, table: Name, rows: Vec<Row>, reporter: Reporter, ) -> Result<Self, DeclarationError>
Declare the complete neutral benchmark payload one delivery is written from.
§Errors
Returns DeclarationError::Absent where no row was supplied, DeclarationError::Doubled where the table function and reporter module share one generated-item spelling or two rows carry one lens spelling, and DeclarationError::Unbounded where the rows outgrow BENCH_ROW_LIMIT.
Sourcepub const fn support(&self) -> &SupportName
pub const fn support(&self) -> &SupportName
The exported name a consumption target invokes this delivery’s carrier by.
Sourcepub const fn table_function(&self) -> &FunctionName
pub const fn table_function(&self) -> &FunctionName
The function the benchmark-table stamp writes.
Trait Implementations§
Source§impl Clone for BenchmarkDeclaration
impl Clone for BenchmarkDeclaration
Source§fn clone(&self) -> BenchmarkDeclaration
fn clone(&self) -> BenchmarkDeclaration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BenchmarkDeclaration
impl Debug for BenchmarkDeclaration
impl Eq for BenchmarkDeclaration
Source§impl Hash for BenchmarkDeclaration
impl Hash for BenchmarkDeclaration
Source§impl PartialEq for BenchmarkDeclaration
impl PartialEq for BenchmarkDeclaration
impl StructuralPartialEq for BenchmarkDeclaration
Auto Trait Implementations§
impl Freeze for BenchmarkDeclaration
impl RefUnwindSafe for BenchmarkDeclaration
impl Send for BenchmarkDeclaration
impl Sync for BenchmarkDeclaration
impl Unpin for BenchmarkDeclaration
impl UnsafeUnpin for BenchmarkDeclaration
impl UnwindSafe for BenchmarkDeclaration
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