How are enums stored in memory?
In particular: How are they stored when you have a number of different associated structures?
ie. what is the size of Foo, here?
enum Foo {
Bar(SomeStruct),
Baz(SomeOtherStruct)
}
In particular: How are they stored when you have a number of different associated structures?
ie. what is the size of Foo, here?
enum Foo {
Bar(SomeStruct),
Baz(SomeOtherStruct)
}