Skip to content
API REFERENCEUsage guides →

cellpack::loader::ExternCorpusAccesses ​

struct

Module contract · All interfaces

At a glance ​

pub struct ExternCorpusAccesses { /* private fields */ }

A native corpus generator bound to the registered datasets’ row counts.

Member index ​

1 of 1 members

  • newBinds a corpus callback to dataset-local row counts.

Methods and associated constants ​

new ​

pub unsafe fn new(
    f: CorpusAccessFn,
    context: *mut c_void,
    len: u64,
    counts: &[u64],
) -> Result<Self>

Binds a corpus callback to dataset-local row counts.

Safety ​

f and context must remain valid, be safe to call concurrently and write exactly count dataset indices and rows. Results depend only on the access position and immutable configuration.

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