Skip to content
API REFERENCEUsage guides →

cellpack::prof::Layout ​

struct

Module contract · All interfaces

At a glance ​

pub struct Layout { /* private fields */ }

Where each site’s records lie in a Record: the offset of its detail slots and of its histogram, and the record’s total length.

Member index ​

2 of 2 members

  • newThe layout of records for schemas schemas and bands size bands; either count is clamped to one so every detail slot exists.
  • wordsWords of a record: calls and ticks per detail slot, then histograms.

Methods and associated constants ​

new ​

pub fn new(schemas: usize, bands: usize) -> Self

The layout of records for schemas schemas and bands size bands; either count is clamped to one so every detail slot exists.

words ​

pub fn words(&self) -> usize

Words of a record: calls and ticks per detail slot, then histograms.

Implemented traits ​

impl Clone for Layout
impl Debug for Layout

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