construct-typing icon indicating copy to clipboard operation
construct-typing copied to clipboard

AlignedStruct support

Open waszil opened this issue 3 years ago • 2 comments

Hi! Great package! I use AlignedStruct from construct, is there a way to wrap it by DataclassStruct? Thanks!

waszil avatar Feb 04 '22 15:02 waszil

Yes, this should also be possible in principle. But I have not implemented that yet. I put it on my TODO list, but it will take some time until I will implement it...

As a workaround you can declare each field as Aligned. AlignedStruct does nothing else, but automated.

timrid avatar Feb 05 '22 11:02 timrid

You're right, using Aligned for each field works just fine. Thanks!

waszil avatar Feb 07 '22 12:02 waszil