You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// * **Error Cases:** Cannot be combined with `#[subform_scalar]`.
30
+
//
31
+
// 2. **`#[subform_scalar]` Attribute:**
32
+
// * **Unit Variant:** Error.
33
+
// * **Zero-Field Variant (Tuple or Struct):** Error.
34
+
// * **Single-Field Variant (Tuple or Struct):** Generates `Enum::variant() -> InnerFormer<...>` (where `InnerFormer` is the former for the field's type). Requires the field type to be a path type deriving `Former`.
35
+
// * **Multi-Field Variant (Tuple or Struct):** Generates `Enum::variant() -> InnerFormer<...>` (where `InnerFormer` is the former for the field's type). Requires the field type to be a path type deriving `Former`.
// * **Single-Field Variant (Tuple or Struct):** Generates `Enum::variant() -> InnerFormer<...>` (where `InnerFormer` is the former for the field's type). Requires the field type to be a path type deriving `Former`.
41
+
// * **Multi-Field Variant (Tuple or Struct):** Generates `Enum::variant() -> InnerFormer<...>` (where `InnerFormer` is the former for the field's type). Requires the field type to be a path type deriving `Former`.
42
+
//
43
+
// Body attribute `standalone_constructors` creates stand-alone, top-level constructors for struct/enum. for struct it's always single function, for enum it's as many functions as enum has vartianys.
44
+
//
21
45
// ==================================
22
46
23
47
/// Temporary storage for field information needed during generation.
0 commit comments