average icon indicating copy to clipboard operation
average copied to clipboard

`concatenate!` macro cannot expand to public type

Open graelo opened this issue 2 years ago • 1 comments

Hi,

I'd like to use concatenate!() and obtain a a public type, but I could not find a way. Do you envision a simple way to do this?

Thanks

graelo avatar Sep 24 '21 17:09 graelo

The easiest workaround would be to use the newtype pattern to define a public type:

concatenate!(PrivateEstimator, ...);
pub struct PublicEstimator(PrivateEstimator);

However, this will result in quite a bit of boilerplate code. I'll consider extending concatenate! to support creating a public type.

Sorry for the late reply!

vks avatar Jul 04 '23 19:07 vks