pub struct Row { /* private fields */ }Expand description
One benchmark row’s declaration-owned facts, plus the lens its target-owned expressions arrive under.
Implementations§
Source§impl Row
impl Row
Sourcepub fn declared(
lens: FunctionName,
references: References,
axis: Vec<u64>,
measurement: Measurement,
observations: Vec<Name>,
) -> Result<Self, DeclarationError>
pub fn declared( lens: FunctionName, references: References, axis: Vec<u64>, measurement: Measurement, observations: Vec<Name>, ) -> Result<Self, DeclarationError>
Declare one bench row.
§Errors
Returns DeclarationError::NotACurve where the axis states fewer than two sizes, DeclarationError::Doubled where two positions state one axis size or observation, DeclarationError::Absent where no observation was declared, and DeclarationError::Unbounded where either roster outgrows its declared magnitude.
The checks run in the signature’s semantic order and retain the first established cause.
Sourcepub const fn lens(&self) -> &FunctionName
pub const fn lens(&self) -> &FunctionName
The lens the carrier’s target-owned expressions are matched under.
Sourcepub const fn references(&self) -> &References
pub const fn references(&self) -> &References
The four namespaced references this row states about itself.
Sourcepub fn axis(&self) -> &[u64]
pub fn axis(&self) -> &[u64]
The declared input-size axis; structurally at least two distinct sizes.
§Ordering
This order is meaning: the axis is the curve a growth class is read off, and the rendering writes the sizes in exactly the order they were declared.
Sourcepub const fn measurement(&self) -> &Measurement
pub const fn measurement(&self) -> &Measurement
What this row declares about how it is measured.
Sourcepub fn observations(&self) -> &[Name]
pub fn observations(&self) -> &[Name]
The work observations this row’s target-owned callables may record, in authored order.