general/struct library

Classes

Field<V>
Field — key to a value in a host struct, carrying accessor logic and type scope
StructInitializer<T extends StructBase<T, K, V>, K extends Field<V>, V>
proxy over a map

Mixins

StructBase<S extends StructBase<S, K, V>, K extends Field<V>, V>
StructBase — abstract base user subtype

Extension Types

StructData
StructData — zero-cost keyed view over an existing object.
StructForm
StructForm StructData TypeClass Common viewer interface handle creation, creation here gurantees all keys are 'Struct' keys are present Conversion — bridge to Map (and therefore to serialization)

Extensions

TypedStructReference on ({StructData<K, V> data, StructForm<K, V> type})
return context with both keys and data StructForm(PersonField.values)(personA).toMap();

Typedefs

StructField<K extends Field<V>, V> = ({K key, V value})