Function tuple [src]
Like value, but always serializes val as a tuple.
Will fail at comptime if val is not a tuple, array, pointer to an array, or slice.
Prototype
pub fn tuple(self: *Serializer, val: anytype, options: ValueOptions) Error!void
Parameters
self: *Serializer
options: ValueOptions
Possible Errors
Source
pub fn tuple(self: *Serializer, val: anytype, options: ValueOptions) Error!void {
comptime assert(!typeIsRecursive(@TypeOf(val)));
try self.tupleArbitraryDepth(val, options);
}