Function tupleMaxDepth [src]
Like tuple, but recursive types are allowed.
Returns error.ExceededMaxDepth if depth is exceeded.
Prototype
pub fn tupleMaxDepth( self: *Serializer, val: anytype, options: ValueOptions, depth: usize, ) DepthError!void
Parameters
self: *Serializer
options: ValueOptions
depth: usize
Possible Errors
Source
pub fn tupleMaxDepth(
self: *Serializer,
val: anytype,
options: ValueOptions,
depth: usize,
) DepthError!void {
try checkValueDepth(val, depth);
try self.tupleArbitraryDepth(val, options);
}