Commit Graph

6 Commits

Author SHA1 Message Date
Aryadev Chavali
d8e8682ce7 helper: split out ExactSizeArr into its own module 2026-04-14 22:52:35 +01:00
Aryadev Chavali
414e523ba4 *: move from /*** */ doc-comments to /// 2026-04-14 22:52:35 +01:00
Aryadev Chavali
76f180d4c6 helper: macro to generate Eq,PartialEq,PartialOrd impls for an Ord type. 2026-04-14 22:52:35 +01:00
Aryadev Chavali
ec31844ee7 helper: new ExactSizedArr adaptor for ExactSizedIterators
Given an ExactSizedIterator and a compile time known size (N), we
should be able to generate stack allocated arrays of the contents of
an iterator as long as the iterator has at least the required size.
2026-04-07 12:36:48 +01:00
Aryadev Chavali
892c112433 helper: ordered now takes a fixed sized array of type T
I wanted to abstract ordered to any size instead of just binary
tuples - but tuples have a strange issue where you can't be generic
about them past like a limit of 12.  With this setup, ordered takes
ownership of some fixed array, sorts it, then returns it back.

modes:pair and modes:single have been refactored to utilise this new
form of ordered - it's basically the exact same in these cases.
2026-04-05 04:45:51 +01:00
Aryadev Chavali
9059047c79 helper: little module for helper functions 2026-04-05 04:45:51 +01:00