Skip to content
API REFERENCEUsage guides →

cellpack::opt::ProcessCost ​

struct

Module contract · All interfaces

At a glance ​

pub struct ProcessCost {
    pub max_elements: u32,
    pub process: f64,
    pub resolve: f64,
}

One band of a process function’s size curve: the costs that hold for a row of up to max_elements elements.

Fields and variants ​

max_elements ​

max_elements: u32

The band’s largest row size, inclusive; the last band ends at u32::MAX.

process ​

process: f64

Core-seconds of one call in this band.

resolve ​

resolve: f64

Core-seconds a partial call in this band adds.

Implemented traits ​

impl<'de> Deserialize<'de> for ProcessCost

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