Appearance
cellpack::opt::OutputCost
Module contract · All interfaces
At a glance
pub struct OutputCost {
pub process: f64,
pub map_element: f64,
pub fill_element: f64,
pub resolve: f64,
pub resolve_element: f64,
pub curve: Vec<ProcessCost>,
}What one output schema’s delivery costs, per element, per row and per call.
Fields and variants
process
process: f64The process function, per call (none for the built-in output).
map_element
map_element: f64Mapping an element to the schema’s output dims and writing it, per element (the conversion’s class adds its own cost).
fill_element
fill_element: f64Filling a dense row with the default, per output dim.
resolve
resolve: f64Additional work inside a process callback when it receives a partial row and resolves values itself, per partial call.
resolve_element
resolve_element: f64Additional partial-callback work per stored element.
curve
curve: Vec<ProcessCost>Optional size bands replacing the fixed process/resolver costs.
Implemented traits
impl Clone for OutputCostimpl Debug for OutputCostimpl<'de> Deserialize<'de> for OutputCostimpl PartialEq for OutputCostimpl Serialize for OutputCostContract reference
See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.