Skip to main content

LinePositions

Type Alias LinePositions 

Source
pub(crate) type LinePositions = SmallVec<[u32; 4]>;
Expand description

The one-indexed line positions of a single grid line name. Inline capacity of 4 keeps the type the same size as Vec<u32> (24 bytes) while avoiding a heap allocation for names mapping to at most 4 lines (the common case)

Aliased Typeยง

pub(crate) struct LinePositions { /* private fields */ }