RegisterTypes registers multiple data types in the sequence they are provided.
(types []*Type)
| 264 | |
| 265 | // RegisterTypes registers multiple data types in the sequence they are provided. |
| 266 | func (m *Map) RegisterTypes(types []*Type) { |
| 267 | for _, t := range types { |
| 268 | m.RegisterType(t) |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | // RegisterType registers a data type with the [Map]. t must not be mutated after it is registered. |
| 273 | func (m *Map) RegisterType(t *Type) { |