Skip to content
API REFERENCEUsage guides →

cellpack::loader::ProcessContext ​

struct

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

PROCESS_ABI_VERSION of the call.

struct_size ​

struct_size: u32

Size of the row struct the callback receives, in bytes.

position ​

position: u64

The access’s position in the sequence (its position index, not the access index: every schema of one position sees the same value).

cell ​

cell: u64

The global cell loaded.

schema ​

schema: u32

The schema’s index in the loader.

dtype ​

dtype: u32

Element type code of values (the schema’s dtype).

user_data ​

user_data: *const c_void

The pointer passed to ProcessFn::new.

Implemented traits ​

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