Appearance
cellpack::loader::ProcessContext
Module contract · All interfaces
At a glance
#[repr(C)]pub struct ProcessContext {
pub abi_version: u32,
pub struct_size: u32,
pub position: u64,
pub cell: u64,
pub schema: u32,
pub dtype: u32,
pub user_data: *const c_void,
}What every process call learns about itself: which cell, which schema, and the caller’s user_data.
struct_size lets a callback detect a newer, longer row struct; the loader sets it to the size of the struct it passes, not of this one on its own.
Fields and variants
abi_version
abi_version: u32PROCESS_ABI_VERSION of the call.
struct_size
struct_size: u32Size of the row struct the callback receives, in bytes.
position
position: u64The access’s position in the sequence (its position index, not the access index: every schema of one position sees the same value).
cell
cell: u64The global cell loaded.
schema
schema: u32The schema’s index in the loader.
dtype
dtype: u32Element type code of values (the schema’s dtype).
user_data
The pointer passed to ProcessFn::new.
Implemented traits
impl Clone for ProcessContextContract 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.