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: *Serializeroptions: ValueOptions

Possible Errors

WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn tuple(self: *Serializer, val: anytype, options: ValueOptions) Error!void { comptime assert(!typeIsRecursive(@TypeOf(val))); try self.tupleArbitraryDepth(val, options); }