Expand description
Vec<unit-enum> collections. The element is a scalar discriminant, so the
column is a native scalar array where the backend has one — int8[] for
integer discriminants, ink[] for a native enum — never a document.
Functions§
- enum_
storage_ propagates_ through_ nested_ embed - Enum storage also follows an enum nested through a flattened embed.
- enum_
storage_ propagates_ through_ wrappers - Transparent field wrappers preserve enum-level storage, and a field-level override still wins after passing through the wrapper.
- native_
enum_ vec_ create_ get - A
Vec<native-enum>round-trips through INSERT and a fresh fetch, exercising the enum-array bind and decode wire paths. - native_
enum_ vec_ stores_ as_ enum_ array - A
Vec<native-enum>stores as a native enum array (ink[]), nottext[]. - vec_
enum_ contains_ and_ len - The scalar-collection operators unlocked by the emitted
Scalarimpl:contains(variant)matches on discriminant membership andlen()filters on cardinality. - vec_
enum_ create_ get - A
Vec<unit-enum>round-trips through INSERT and a fresh fetch. - vec_
enum_ uses_ discriminant_ storage - Enum-level storage applies to collection elements, while a field-level type overrides that default. Both paths bridge and round-trip each element.