Description
Sample
could benefit from EQUILIBRIUM
and IDENTITY
associated constants, allowing us to remove the methods that currently fill this role.
Frame
could benefit from, NUM_CHANNELS
, EQUILIBRIUM
and IDENTITY
associated constants, allowing us to remove the n_channels
and equilibrium
methods.
Frame
would also massively benefit from integer generics of some sort in order to get rid of the NumChannels
associated type, the related trait and the macro-generated implementations for every frame size up to 32 (an arbitrary, unnecessary limit).
It looks like associated consts at least will land soonish as the feature gate was recently removed. I'm not sure what the current state of integer generics is.
cc @andrewcsmith I'm leaning towards making this a 1.0 blocker as it will cause quite a significant impact on the API. Otherwise I guess we could aim to stabilise earlier and then release a 2.0
in the future when these features arrive. Looking into the progress on integer generics will probably help us to make a decision!