pub fn tupleMaxDepth(
self: *Serializer,
val: anytype,
options: ValueOptions,
depth: usize,
) DepthError!void self: *Serializervaloptions: ValueOptionsdepth: usize321
322
323
324
325
326
327
328
329pub fn tupleMaxDepth(
self: *Serializer,
val: anytype,
options: ValueOptions,
depth: usize,
) DepthError!void {
try checkValueDepth(val, depth);
try self.tupleArbitraryDepth(val, options);
}
Like
tuple, but recursive types are allowed.Returns
error.ExceededMaxDepthifdepthis exceeded.