Last time I checked zig copied each array element. To avoid memcpy you have to explicitly write:
for (&actions) |*action| {
see also: How to avoid implicit memcpys?
Last time I checked zig copied each array element. To avoid memcpy you have to explicitly write:
for (&actions) |*action| {
see also: How to avoid implicit memcpys?