Function valueMaxDepth [src]

Serialize a value, similar to serializeMaxDepth. Can return error.ExceededMaxDepth.

Prototype

pub fn valueMaxDepth(self: *Serializer, val: anytype, options: ValueOptions, depth: usize) DepthError!void

Parameters

self: *Serializeroptions: ValueOptionsdepth: usize

Possible Errors

ExceededMaxDepth
WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn valueMaxDepth(self: *Serializer, val: anytype, options: ValueOptions, depth: usize) DepthError!void { try checkValueDepth(val, depth); return self.valueArbitraryDepth(val, options); }