Skip to content
API REFERENCEUsage guides →

cellpack::loader::Offset ​

struct

Module contract · All interfaces

At a glance ​

pub struct Offset<A> { /* private fields */ }

Schema s of a position loads the position’s cell plus offsets[s].

Member index ​

1 of 1 members

  • newOne offset per schema, in schema order: schema s of a position loads the position’s cell plus offsets[s] (wrapping is an error, not a silent overflow). Paired matrices registered in the same order keep the same pairing across positions.

Methods and associated constants ​

new ​

pub fn new(inner: A, offsets: Vec<CellId>) -> Result<Self>

One offset per schema, in schema order: schema s of a position loads the position’s cell plus offsets[s] (wrapping is an error, not a silent overflow). Paired matrices registered in the same order keep the same pairing across positions.

Implemented traits ​

impl<A: Accesses> Accesses for Offset<A>

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