I got nerd sniped into seeing if the advertisement builder API by @AdinAck in #214 could be made fully const. It turns out the answer is yes, though it required removing the traits (traits are generally not compatible with const fns) and making a few other refactorings as a result. I also changed the ADType enum to an AdvertisementDataType newtype with associated constants, to allow users to use values that may be standardized later.
I got nerd sniped into seeing if the advertisement builder API by @AdinAck in #214 could be made fully const. It turns out the answer is yes, though it required removing the traits (traits are generally not compatible with const fns) and making a few other refactorings as a result. I also changed the
ADType
enum to anAdvertisementDataType
newtype with associated constants, to allow users to use values that may be standardized later.