i was thinking how the heck i'd get this hacky typ...
# development
a
i was thinking how the heck i'd get this hacky type map for unions into rust and then i was like wow can i literally do this??? just being able to say
TypeConstraint[]
is ridiculously nice
Copy code
def type_constraints_buf(self, type_constraints):
  buf = self._ffi.new('TypeConstraint[]', type_constraints)
  return (buf, len(type_constraints), self.to_value(buf))
we'll see if that works but i'm confident for no reason