0.3.10 release
This release adds a destructure macro to destructure (non-Drop) structs/tuples/arrays into their potentially fields/elements in const.
This macro requires the 1.83.0 Rust release, which will reach the stable channel on 2024-11-28.
0.3
0.3.10
Added "rust_1_83" feature, which enables the "mut_refs" feature.
Added "destructure" macro (requires the "rust_1_83" feature)
Fixed future compatibility warnings
0.3.9
Defined these macros max, max_by, max_by_key, min, min_by, and min_by_key macros.
Re-exported these macros in the konst::cmp module:
coerce_to_cmpconst_cmpconst_cmp_forconst_eqconst_eq_forimpl_cmpmaxmax_bymax_by_keyminmin_bymin_by_key
Now the fold and foldr methods in konst::iter::eval can take closures with type-annotated parameters (e.g: |accum: Bar, element: Qux| {)
0.3.8
Removed most Copy restriction of these macros:
konst::array::from_fnkonst::array::mapkonst::iter::collect_const
The pattern of the closure passed tokonst::array::mapis still required not to move out of the input array.
Improved konst::array::{from_fn, map} macros by allowing its closure parameter to take more unparenthesized patterns.
Improved the konst::iter::{collect_const, eval, for_each} macros by allowing single-parameter closures passed to the macro to annotate the type of the parameter.