Expand description
Code for resolving name grid lines and areas
Structsยง
- Grid
Line Names - The names of each explicit grid line in a single axis, stored in CSR (compressed sparse
row) format: a single flat
Vecof names plus aVecof offsets into it (one more offset than there are lines). The names of linei(0-indexed) arenames[offsets[i]..offsets[i + 1]]. - Grid
Line Names Iter - Iterator over the per-line name groups of a
GridLineNames. Yields one&[S]per grid line (which is empty for unnamed lines) - Named
Line ๐Resolver - Resolver that takes grid lines names and area names as input and can then be used to resolve line names of grid placement properties into line numbers.
- Named
Line ๐Resolver Axis - Resolver for named placements in one grid axis
- StrHasher ๐
- Wrap an
AsRef<str>type with a type which implements Hash by first deferring to the underlying&strโs implementation of Hash.
Functionsยง
- upsert_
line_ ๐name_ map - Utility function to create or update an entry in a line name map
Type Aliasesยง
- Line
Positions ๐ - 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) - Named
Grid ๐Lines Map - Map from a grid line name to its one-indexed line positions