Skip to content
API REFERENCEUsage guides →

cellpack::opt::OutputCost ​

struct

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: f64

The process function, per call (none for the built-in output).

map_element ​

map_element: f64

Mapping 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: f64

Filling a dense row with the default, per output dim.

resolve ​

resolve: f64

Additional work inside a process callback when it receives a partial row and resolves values itself, per partial call.

resolve_element ​

resolve_element: f64

Additional partial-callback work per stored element.

curve ​

Optional size bands replacing the fixed process/resolver costs.

Implemented traits ​

impl Clone for OutputCost
impl Debug for OutputCost
impl<'de> Deserialize<'de> for OutputCost

Contract 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.

Definition