package toffee
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ab48bc02082f9c1deea0769a13c2935df529536630745ec3a3d718f59656109b
sha512=c0f3c490e13ca60217d9d59c9bfdf3ada12e1565f04fe2a623e7c94298d519393eabe404e2317726712bf5e7fa860780a07494e77994ac05032e71f535c56910
doc/toffee.geometry/Toffee_geometry/In_both_abs_axis/index.html
Module Toffee_geometry.In_both_abs_axisSource
Container that holds an item in each absolute axis.
This module provides a simple two-field record for storing values that vary by absolute axis (horizontal and vertical). It is primarily used in CSS Grid layout for properties like track counts, gaps, and placements that differ by axis.
The type of a container holding a value for each absolute axis.
make ~horizontal ~vertical creates a container.
get t axis returns the value for the specified axis.
map2 f t1 t2 applies f to corresponding axis values.
equal eq t1 t2 tests equality using eq on both axes.
compare cmp t1 t2 compares using cmp with lexicographic ordering.
Compares horizontal values first; if equal, compares vertical values.
to_string f t converts to a string using f for values.
pp f fmt t pretty-prints t using f for values.