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: *Serializeroptions: ValueOptionsdepth: 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);
}