API · fn
dumps
pub fn[T : Codec] dumps(T, config? : Config, xlang? : Bool, track_ref? : Bool, check_string? : Bool, depth? : Int32, fields? : Int32, graph? : Int32, wins? : @moonknob.Wins, clash? : @moonknob.OnClash[Config]) -> Bytes raise
One value as one message: the head, the type ID, and the value.
The configuration is the record, then this call's flat mirrors: the library preset is beaten by the record, and the record by the flat mirrors, unless wins says otherwise. A flat mirror whose value differs from the record's is what clash arbitrates: taken by wins silently or with a warning, aborted on, or handed to the caller's function.
Generated from src/pkg.generated.mbti and the doc comments beside this declaration.